提交记录 11209
| 用户 |
题目 |
状态 |
得分 |
用时 |
内存 |
语言 |
代码长度 |
| ymz |
test. 自定义测试 |
Accepted |
100 |
405.379 ms |
12 KB |
C++ |
245 B |
| 提交时间 |
评测时间 |
| 2019-11-06 14:59:08 |
2023-09-03 19:39:03 |
#include<cstdio>
//using namespace std;
const int p=1e9+7;
void Add(int &x,int y){
x+=y;
while(x>=p) x-=p;
}
int main(){
int a=1,b=1,c=1;
for(int i=1;i<=100000000;i++){
Add(a,b);Add(a,c);
b=c=a;
}
printf("%d\n",a);
return 0;
}
| Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
| Testcase #1 | 405.379 ms | 12 KB | Accepted | Score: 100 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2026-03-28 05:06:41 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠