Run ID:68941
提交时间:2024-03-28 19:33:47
# include<iostream> using namespace std; int main(){ long long p,e,i,d; cin>>p>>e>>i>>d; for(int j=0;j<924;j++){ for(int k=0;k<759;k++){ for(int n=0;n<644;n++){ if(((p+j*23)==(e+j*28))&&((p+j*23)==(i+n*33))){ cout<<"the next triple peak occurs in "<<p-d<<" days"; return 0; } } } } }