| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 157487 | 孔声豪 | 生理周期 | C++ | Time Limit Exceeded | 1000 MS | 276 KB | 375 | 2026-07-24 13:32:09 |
#include<iostream> using namespace std; int main(){ int p,e,i,d; cin>>p>>e>>i>>d; for(int p2=1;p2<=215252/23;p2++){ for(int e2=1;e2<=215252/28;e2++){ for(int i2=1;i2<=215252/33;i2++){ if(p+p2*23==e+e2*28&&e+e2*28==i+i2*33){ int j=p+p2*23; cout<<"the next triple peak occurs in"<<j-d<<"days"; } } } } return 0; }