Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
126740 吴悠 求数的总和 C++ 通过 100 0 MS 236 KB 180 2024-01-24 17:02:24

Tests(2/2):


#include<iostream> using namespace std; int main(){ int sum=0; while(true){ int n; cin>>n; if(n==0){ break; } sum+=n; } cout<<sum<<endl; return 0; }


测评信息: