Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
100473 陈治宸 12序列的第n项 C++ Wrong Answer 1 MS 268 KB 171 2024-12-08 09:36:18

Tests(0/10):


Code:

#include<iostream> using namespace std; int main(){ int n,ans=1; cin>>n; for(int j=0;j<n-1;j++){ ans+=j; cout<<ans<<endl; return 0; } }


Run Info:

------Input------
5
------Answer-----
7
------Your output-----
1