Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
83825 王陈淼 12序列的第n项 C++ Accepted 1 MS 280 KB 176 2024-07-15 08:52:29

Tests(10/10):


Code:

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