| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 139224 | 翁思宸 | 生理周期 | C++ | Accepted | 290 MS | 272 KB | 480 | 2025-12-05 18:17:45 |
//1494 生理周期 #include<iostream> #include<cstdio> #include<cstring> #include<cmath> using namespace std; int main(){ int p=0,e=0,i=1,d=1; cin>>p>>e>>i>>d; for(int x=p;x<=21252;x+=23){ for(int y=e;y<=21252;y+=28){ for(int z=i;z<=21252;z+=33){ if(x==y && y==z){ cout<<"the next triple peak occurs in "<<x-d<<" days."<<endl; } } } } return 0; }