Run ID:85544

提交时间:2024-07-17 20:11:44

def is_leap_year(year): if (year % 4 == 0 and year % 100 != 0) or (year % 400 == 0): return "Yes" else: return "No" year = int(input("Enter the year: ")) if is_leap_year(year) == "Yes": print(f"{year} Yes") else: print(f"{year} No")