Run ID:162901

提交时间:2026-10-22 20:11:26

#include<iostream> using namespace std; int main(){ int p,e,i,d; cin>>p>>e>>i>>d; int x=d+1; while(1){ if((x-p)%23==0&&(x-e)%28==0&&(x-i)%33==0) break; x++; } cout<<"the next triple peak occurs in "<<x-d<<" days."<<endl; return 0; }