#1775. C++-循环while-输入一个整数,输出其位数
C++-循环while-输入一个整数,输出其位数
Background
Description
输入一个整数,输出其位数
输入的整数可能是正整数、零或负整数,要特别注意如果零时其位数为1,负整数的位数不含负号。
Format
Input
Output
Samples
987650
6
0
1
-123
3
Limitation
1s, 1024KiB for each test case.
输入一个整数,输出其位数
输入的整数可能是正整数、零或负整数,要特别注意如果零时其位数为1,负整数的位数不含负号。
987650
6
0
1
-123
3
1s, 1024KiB for each test case.
By signing up a PaiBlockly编程创客平台图形模块编程软件系统 universal account, you can submit code and join discussions in all online judging services provided by us.