Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
19 admin [在线测评解答教程] 求和 C++ 通过 0 MS 288 KB 141 2024-12-11 08:56:39

Tests(10/10):


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


测评信息: