Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
7896 | 余立涵 | 15几个数字组成 | C++ | Wrong Answer | 0 MS | 260 KB | 262 | 2025-05-24 20:16:25 |
#include<bits/stdc++.h> using namespace std; int main(){ int n=0; int x; cin>>x; if(x==0){ cout<<1<<endl; return 0; } while(x>=1){ x=x/10; n++; } cout<<n<<endl; return 0; }
------Input------
-9980
------Answer-----
4
------Your output-----
0