Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
65965 李雨昊 累加器 C++ Accepted 0 MS 260 KB 194 2024-02-28 19:02:21

Tests(1/1):


Code:

#include<iostream> #include<cstdio> using namespace std; int main() { int a=0,b = 1; while(1){ a += b; b+=1; if (b == 101){ break; } } cout<<a; return 0; }