Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
74046 陈昊然 12序列的第n项 C++ Accepted 0 MS 272 KB 154 2024-05-21 19:21:12

Tests(10/10):


Code:

#include <bits/stdc++.h> using namespace std; int main (){ int u=1,e; cin>>e; for(int i=0;i<=e-2;i++){ u=u+i; } cout<<u; return 0; }