| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 137189 | 顾文博 | 生理周期 | C++ | Wrong Answer | 1 MS | 264 KB | 613 | 2025-11-16 15:28:59 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int p,e,i,d,x,y,z; cin>>p>>e>>i>>d; for(int x=p+23;x<=21252;x+=23){ for(int y=e+28;e<=21252;e+=28){ for(int z=i+33;z<=21252;z+=33){ if(x==y && x==z && y==z){ cout<<"the next triple peak occurs in "<<x-d<<"days."; } } } } return 0; }
------Input------
51 3 94 38
------Answer-----
the next triple peak occurs in 749 days.
------Your output-----