Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
76316 殷震轩 直线分割圆 C++ Accepted 48 MS 63964 KB 199 2024-06-02 11:17:34

Tests(10/10):


Code:

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