Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
4278 D班-苏莉雯 数1的个数 C++ 解答错误 0 0 MS 272 KB 225 2025-01-05 17:29:48

Tests(0/5):


#include<bits/stdc++.h> using namespace std; int main() { int a,b,c,g,s,q,w; cin>>a; w=a/10000; q=a/1000%10; b=a/100%10; s=a/10%10; g=a%10; if(w==1||q==1||b==1||s==1||g==1) { c++; } cout<<c; }


测评信息: