Run ID:85305
提交时间:2024-07-16 22:32:55
# 读取样例数量 t = int(input()) # 读取所有年份并存储到列表中 years = [] for i in range(t): n = int(input()) years.append(n) # 判断闰年并输出结果 for year in years: if (year % 4 == 0 and year % 100 != 0) or year % 400 == 0: print("Yes") else: print("No")