Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
162648 陈襗葳 笨鸟先飞 C++ Accepted 1 MS 268 KB 329 2026-10-18 10:03:39

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; }