Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
47122 | zhangrongbao2023 | 练35.2 加加乐 | C++ | Compile Error | 0 MS | 0 KB | 145 | 2024-05-12 15:36:20 |
#include<iostream> using namespace std; int main() { cin>>n; int cnt; while(n){ cnt+=n%10; n/=10; } cout<<cnt; return 0; }