Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
97548 | 揭伟琦 | 生理周期 | C++ | Accepted | 0 MS | 272 KB | 271 | 2024-11-16 10:50:31 |
#include<bits/stdc++.h> using namespace std; int main(){ int p,e,i,d; cin >>p>>e>>i>>d; for(int j=d;j<=21252;j++){ if((j-p)%23==0&&(j-e)%28==0&&(j-i)%33==0){ cout <<"the next triple peak occurs in "<<j-d <<" days."; } } return 0; }