提交记录 21261
提交时间 |
评测时间 |
2024-02-20 14:11:10 |
2024-02-20 14:11:12 |
#include<bits/stdc++.h>
using namespace std;
const int mod=1e9+7;
void add1(int &a,int b) { (a+b>=mod) && (a-=mod); }
void add2(int &a,int b) { a=(a+b<mod?a+b:a+b-mod); }
int main()
{
int sum=0;
for(int i=1e8; i<=1e9; ++i) add1(sum,1ll*i*i%mod);
cout<<sum;
return 0;
}
Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
Testcase #1 | 35.64 us | 36 KB | Accepted | Score: 100 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2025-07-20 10:31:52 | Loaded in 0 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠