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