Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
106091 胡海峰老师 累加器 C++ Accepted 0 MS 264 KB 273 2025-01-15 12:59:41

Tests(1/1):


Code:

#include <iostream> using namespace std; int main(){ int s=0; int i=1; while(i<=100) { s = s + i; i++; } s =0; for(int i=1;i<=100;i++) s += i; s=0; i = 1; do{ s+=i; i++; } while(i<=100); cout<<s; return 0; }