Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
129862 格林老师 [在线测评解答教程] 求和 C++ Output Limit Exceeded 1 MS 268 KB 143 2025-09-06 17:12:20

Tests(0/10):


Code:

#include <iostream> using namespace std; int main() { int n,s; while(n!=EOF){ cin>>n; cout<<n*(1+n)/2; } }