Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
45251 李昕霏 过生日 Python3 Accepted 68 MS 3764 KB 341 2023-03-12 14:19:22

Tests(1/1):


Code:

a=int(input()) d=[] for i in range(a): b,c=map(int,input().split()) if b%4==0 and b%100!=0 or b%400==0: c-=1 if c>0: while True: b+=1 if b%4==0 and b%100!=0 or b%400==0: c-=1 if c<=0: break d.append(b) for i in d: print(i)