Run ID:136454
提交时间:2025-11-14 18:55:59
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int p,e,i,d; cin>>p>>e>>i>>d; for(int j=p+23;j<=21252;j+=23){ if((j-e)%28==0&&(j-i)%33==0) {cout<<"the next triple peak occurs in "<<j-d<<" days.";return 0;} } return 0; }