Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
126724 罗嘉为 求数的总和 C++ 解答错误 0 0 MS 236 KB 189 2024-01-24 17:00:06

Tests(0/2):


#include <bits/stdc++.h> using namespace std; int main(){; int x, sum = 0; while(x){ sum += x; cin >> x; if(x == 0){ break; } } cout << sum - 1; return 0; }


测评信息: