Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
72875 Py自测 生理周期 Python3 Accepted 41 MS 3764 KB 240 2024-05-13 14:53:28

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)