Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
7179 柯宇希 生理周期 C++ Wrong Answer 44 MS 264 KB 664 2025-04-05 14:51:42

Tests(0/10):


Code:

#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 pp=1;pp<=21252/23;pp++){ for(int ee=1;ee<=21252/28;ee++){ for(int ii=1;ii<=21252/33;ii++){ if(p+pp*23==e+ee*28 && e+ee*28==i+ii*33){ cout<<"the next triple peak occurs in "<<p+pp*23-d<<" day."<<endl; return 0; } } } } return 0; }


Run Info:

------Input------
291 133 66 343
------Answer-----
the next triple peak occurs in 3122 days.
------Your output-----
the next triple peak occurs in 3122 day.