| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 153646 | 陈棋 | 生理周期 | C++ | Wrong Answer | 1 MS | 272 KB | 271 | 2026-05-23 16:41:31 |
#include<iostream> using namespace std; int main(){ int p,e,i,d; cin>>p>>e>>i>>d; int k; for(k=d+1;k<=d+21252;k++){ if((k-p)%23==0&&(k-e)%23==0&&(k-i)%23==0){ break; } } cout<<"the next triple peak occurs in "<<k-d<<" days."<<endl; return 0; }
------Input------
51 3 94 38
------Answer-----
the next triple peak occurs in 749 days.
------Your output-----
the next triple peak occurs in 21253 days.