Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
80166 sh25_huangse 分苹果 C++ 通过 0 MS 252 KB 219 2026-01-04 15:04:55

Tests(1/1):


#include <iostream> using namespace std; int main() { int n; cin >> n; // 计算 1 + 2 + ... + n = n*(n+1)/2 int minApples = n * (n + 1) / 2; cout << minApples << endl; return 0; }


测评信息: