Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
148067 8 [在线测评解答教程] 求和 C++ Accepted 0 MS 272 KB 156 2026-02-09 16:29:22

Tests(10/10):


Code:

#include<iostream> using namespace std; int main(){ int a; while(cin>>a){ cout<<a*(a+1)/2<<endl; } return 0; }