Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
149083 张锦程 12序列的第n项 C++ Accepted 0 MS 272 KB 166 2026-03-07 13:41:06

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; long long a=1+(long long)(n-1)*(n-2)/2; cout<<a<<endl; return 0; }