Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
68261 | 金浩 | 过生日 | Python3 | Accepted | 73 MS | 3768 KB | 300 | 2024-03-22 10:37:29 |
def leyear(y): if y%400==0 or (y%4==0 and y%100!=0): return True else: return False T=int(input()) for i in range(T): Y,N=map(int,input().split()) if leyear(Y): N-=1 while N!=0: Y+=1 if leyear(Y): N-=1 print(Y)