Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
76327 彭林江 直线分割圆 C++ Accepted 52 MS 63968 KB 211 2024-06-02 11:30:41

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ long long n; cin >> n; long long a[n+1]; a[1] = 2; for(int i = 2; i <= n; i++){ a[i] = a[i-1] + i; } cout << a[n]; return 0; }