| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 91779 | sh25_shenpy | 第五届程序设计竞赛 切煎饼 | C++ | 无测评数据 | 0 MS | 0 KB | 205 | 2026-06-15 20:19:13 |
#include <bits/stdc++.h> using namespace std; int main() { int n ; while(cin >> n) { if(n == 0) return 0 ; cout << n * (n + 1) / 2 + 1 << endl ; } return 0; }