Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
68944 万隽宇 生理周期 C++ Wrong Answer 276 MS 276 KB 437 2024-03-28 19:42:51

Tests(0/10):


Code:

# include<iostream> using namespace std; int main(){ long long p,e,l,d; cin>>p>>e>>l>>d; for(int i=0;i<924;i++){ for(int j=0;j<759;j++){ for(int k=0;k<644;k++){ if(((p+i*23)==(e+j*28))&&((p+i*23)==(l+k*33))){ cout<<"the next triple peak occurs in "<<p+i*23-d<<" days"; } } } } 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 749 days