Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
5426 陈一畅 数字游戏(number) C++ 解答错误 0 0 MS 248 KB 200 2020-08-02 16:27:17

Tests(0/20):


#include<bits/stdc++.h> using namespace std; int main(){ int sum,temp,a=1; double b; cin>>a; for(int i=0;i<=a;i++){ b=a%10; a=a/10; if(b==1) temp++; } cout<<temp; return 0; }


测评信息: