Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
129029 常钰杰 直线分割圆 C++ Wrong Answer 1 MS 272 KB 259 2025-08-21 15:51:00

Tests(0/10):


Code:

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


Run Info:

------Input------
4
------Answer-----
11
------Your output-----
12