题解 | #Biorhythms#

Biorhythms

https://www.nowcoder.com/practice/aa66f85934c142f3af2da111dc864d9f

def shizidinli(a, b, c, d):
    for i in range(1, 21253):
        k = d + i
        if (k-a) % 23 == 0 and (k-b) % 28 == 0 and (k-c) % 33 == 0:
            print('Case: the next triple peak occurs in {} days.'.format(i))
            break

# while True:
#     try:

s = list(map(int, input().split()))
shizidinli(s[0], s[1], s[2], s[3])
    # except:
    #     break

全部评论

相关推荐

笑着秋招😊:我一直认为努力有回报是一件很幸福很幸福的事情,恭喜你
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务