Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
5452 sunyutong 数字游戏(number) C++ 通过 100 0 MS 248 KB 154 2020-08-04 17:16:44

Tests(20/20):


#include<bits/stdc++.h> using namespace std; int main(){ int t,s=0; cin>>t; while(t){ if(t%10==1)s++; t=t/10; } cout<<s; return 0; }


测评信息: