Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
6104 | 吴承熹 | 15几个数字组成 | C++ | Wrong Answer | 0 MS | 268 KB | 283 | 2025-01-04 09:40:40 |
#include<iostream> using namespace std; int main(){ int n,a=1; cin>>n; for(int i=1;i<=a;i++){ if(n%10!=0){ a=a+1; //cout<<a<<endl; } n=n/10; //cout<<n<<endl; } cout<<a-1<<endl; return 0; }
------Input------
-9980
------Answer-----
4
------Your output-----
0