Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
107848 李明秦 12序列的第n项 C++ Wrong Answer 1 MS 280 KB 380 2025-01-18 15:00:54

Tests(1/10):


Code:

#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 main(){ int n,num; num=1; cin>>n; for(int i=0;i<n-1;i++){ num=num+i; }cout<<n+2<<" "; return 0; }


Run Info:

------Input------
13
------Answer-----
67
------Your output-----
15