| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 149581 | 徐英杰 | 各个位数之和 | C++ | Accepted | 0 MS | 268 KB | 291 | 2026-03-14 16:14:18 |
#include <iostream> using namespace std; int main() { int n; cin>>n; int s = 0; //0 while (true) { int g = n % 10; s += g; n = n/ 10; if (n == 0) { cout<<s; return 0; } } return 0; }