Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
68945 | 万隽宇 | 生理周期 | C++ | Accepted | 278 MS | 276 KB | 438 | 2024-03-28 19:43:53 |
# include<iostream> using namespace std; int main(){ long long p,e,l,d; cin>>p>>e>>l>>d; for(int i=0;i<924;i++){ for(int j=0;j<759;j++){ for(int k=0;k<644;k++){ if(((p+i*23)==(e+j*28))&&((p+i*23)==(l+k*33))){ cout<<"the next triple peak occurs in "<<p+i*23-d<<" days."; } } } } return 0; }