Run ID:139224
提交时间:2025-12-05 18:17:45
//1494 生理周期 #include<iostream> #include<cstdio> #include<cstring> #include<cmath> using namespace std; int main(){ int p=0,e=0,i=1,d=1; cin>>p>>e>>i>>d; for(int x=p;x<=21252;x+=23){ for(int y=e;y<=21252;y+=28){ for(int z=i;z<=21252;z+=33){ if(x==y && y==z){ cout<<"the next triple peak occurs in "<<x-d<<" days."<<endl; } } } } return 0; }