Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
163059 金浩宸 笨鸟先飞 C++ Accepted 3 MS 272 KB 309 2026-10-24 12:10:51

Tests(1/1):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ long long s; long long T,n; cin>>T; while (T--){ s=1; long long sumi=1; cin>>n; for (int i=1;i<n;i++){ s+=2; sumi+=s; } cout<<sumi%10000<<endl; } return 0; }