Run ID:7185
提交时间:2025-04-05 14:55:59
#include<iostream> 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&&i+ii*33){ cout<<"the next triple peak occurs in " <<p+pp*23-d<<" days."<<endl; return 0; } } } } return 0; }