Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
101007 | 包老师 | 12序列的第n项 | C++ | Wrong Answer | 0 MS | 268 KB | 153 | 2024-12-14 12:22:42 |
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; int m=1; for(int i=0;i<=n;i++){ m=m+i; } cout<<m; return 0; }
------Input------
5
------Answer-----
7
------Your output-----
16