Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
119762 | 吴诗涵 | 生理周期 | C++ | Wrong Answer | 290 MS | 268 KB | 565 | 2025-05-18 18:39:47 |
#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; cin>>p>>e>>i>>d; for(int j=p;j<=21252;j+=23){ for(int x=e;x<=21252;x+=28){ for(int y=i;y<=21252;y+=33){ if(j==e&&j==y){ cout<<"the next triple peak occurs in "<<j<<" days."; return 0; } } } } return 0; }
------Input------
51 3 94 38
------Answer-----
the next triple peak occurs in 749 days.
------Your output-----