| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 162901 | 李亭绪 | 生理周期 | C++ | Accepted | 1 MS | 272 KB | 301 | 2026-10-22 20:11:26 |
#include<iostream> using namespace std; int main(){ int p,e,i,d; cin>>p>>e>>i>>d; int x=d+1; while(1){ if((x-p)%23==0&&(x-e)%28==0&&(x-i)%33==0) break; x++; } cout<<"the next triple peak occurs in "<<x-d<<" days."<<endl; return 0; }