Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
7187 | 郑元泰 | 生理周期 | C++ | Wrong Answer | 0 MS | 260 KB | 472 | 2025-04-05 14:57:03 |
#include<iostream> using namespace std; int main(){ int p,e,i,d; cin>>p>>e>>i>>d; for(int pp=1;pp<=21252/23;pp++){ for(int ee=1;ee<=21252/28;ee++){ for(int ii=1;ii<=21252/33;ii++){ if(p+pp*23&&e+ee*28 ==i+ii*33){ cout<<"the next triple peak occurs in " <<p+pp*23-d<<" days."<<endl; return 0; } } } } return 0; }
------Input------
291 133 66 343
------Answer-----
the next triple peak occurs in 3122 days.
------Your output-----
the next triple peak occurs in -29 days.