Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
96873 | 董林泽 | 折线分割圆 | C++ | Wrong Answer | 1 MS | 260 KB | 452 | 2024-11-09 17:34:14 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int n; int m=1,sum=1,sum1=1; long long a[100]; int fun(int n) { sum=1+(n+1)*n; return sum; } int main(){ cin>>n; cout<< fun(n) <<endl; return 0; }
------Input------
4
------Answer-----
33
------Your output-----
21