Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
43670 | 蒋金珂 | 生理周期 | C++ | Accepted | 208 MS | 272 KB | 380 | 2022-12-24 12:16:53 |
#include<bits/stdc++.h> using namespace std; int main() { int p,e,i,d; cin>>p>>e>>i>>d; for(int x=0; x<21252/23; x++) { for(int y=0; y<21252/28; y++) { for(int z=0; z<21252/33; z++) { if(p+23*x==e+28*y&&e+28*y==i+33*z&&e+28*y>=d) { cout<<"the next triple peak occurs in "<<e+28*y-d<< " days."; return 0; } } } } return 0; }