Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
162927 郦辰希 笨鸟先飞 C++ Accepted 2 MS 272 KB 329 2026-10-23 20:30:25

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