标签:通过 class for NPU split put int color input
科学做法显然是同余定理,但如你所见靠暴力就能通过
t=int(input()) for i in range(0,t): a,b,c,d=map(int,input().split()) for j in range(c+33,21253,33): if j%23==a%23 and j%28==b%28: print("case #%d:\nthe next triple peak occurs in %d days." % (i,j-d if j-d>0 else j-d+21252)) break
标签:通过 class for NPU split put int color input
原文地址:https://www.cnblogs.com/TAMING/p/9200932.html