Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
72876 胡海峰老师 生理周期 Python3 Accepted 38 MS 3776 KB 238 2024-05-13 14:58:47

Tests(10/10):


Code:

p, e, i, d = map(int, input().split()) ans = p + 1 while((ans - p) % 23): ans += 1 while((ans - e) % 28): ans += 23 while((ans - i) % 33): ans += 23 * 28 ans -= d print("the next triple peak occurs in %d days." % ans)