Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
2355 邓小龙 15几个数字组成 C++ Accepted 0 MS 268 KB 280 2023-12-23 18:57:12

Tests(10/10):


Code:

#include<iostream> using namespace std; int main(){ int a,b=0; cin>>a; a=abs(a); if(a<10){ cout<<1; return 0; } else{ while(a>0){ a/=10; b++; } cout<<b; } return 0; }