Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
80166 sh25_huangse 分苹果 C++ Accepted 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; }


Judgement Protocol: