Run ID:100106
提交时间:2024-12-02 12:44:30
p,e,i,d=map(int,input().split()) t=d+1 while (t-p)%23!=0: t+=1 while (t-e)%28!=0: t+=23 while (t-i)%33!=0: t=t+23*28 res=t-d print("the next triple peak occurs in {} days.".format(res))