Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
95211 | 任斌 | 生理周期 | C++ | Wrong Answer | 102 MS | 272 KB | 320 | 2024-10-27 10:12:26 |
#include<bits/stdc++.h> using namespace std; int main() { int p,e,i,d; cin>>p>>e>>i; for(int j=1;j<=924;j++){ for(int q=1;q<=259;q++){ for(int z=1;z<=644;z++){ if(p+j*23==e+q*28 && p+j*23==i+z*33) printf("the next triple peak occurs in %d days.\n",p+j*23-d); } } } return 0; }
------Input------
51 3 94 38
------Answer-----
the next triple peak occurs in 749 days.
------Your output-----
the next triple peak occurs in 787 days.