| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 152530 | 邓弘锐 | 15几个数字组成 | C++ | Wrong Answer | 1 MS | 268 KB | 170 | 2026-04-26 15:10:14 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,cnt=0; cin>>n; while(n!=0){ cnt+=n%10; n=n/10; } cout<<cnt; return 0; }
------Input------
-965
------Answer-----
3
------Your output-----
-20