Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
137188 唐诗阳 生理周期 C++ Wrong Answer 7 MS 268 KB 628 2025-11-16 15:28:11

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,s; cin>>p>>e>>i>>d; for(int k=p+23;p<=21252;k+=23){ for(int j=e+23;j<=21252;j+=28){ for(int x=i+23;x<=21252;x+=33){ if(k==j && j==x){ cout<<"the next triple peak occurs in "<<k-d<<" days."; return 0; } } } } return 0; }


Run Info:

------Input------
51 3 94 38
------Answer-----
the next triple peak occurs in 749 days.
------Your output-----
the next triple peak occurs in 772 days.