ANSWER

王晨逸  •  1个月前


先开python3

tt = int(input())

for _ in range(tt): 

     year = int(input()) 

     if (year % 4 == 0 and year % 100 != 0) or (year % 400 == 0): 

         print("Yes") 

     else: 

         print("No")


评论: