Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
14264 chibubao 求一个数的位数 C++ Accepted 0 MS 240 KB 161 2023-04-12 13:05:38

Tests(1/1):


#include<iostream> using namespace std; int main() { int a,cnt=0; cin>>a; while(a!=0) { //cout<<a<<"\n"; cnt++; a=a/10; } cout<<cnt; }


Judgement Protocol: