- 判断闰年
python
- @ 2025-3-26 16:35:23
输入年份
a = int(input().strip())
判断是否为闰年
if (a % 4 == 0 and a % 100 != 0) or (a % 400 == 0): print("Y") # 是闰年 else: print("N") # 不是闰年
2 条评论
-
🗡🗡��Manfred▄︻┻┳═一 (高俊逸) LV 6 @ 2025-5-21 16:28:14输入年份
a = int(input().strip())
判断是否为闰年
if (a % 4 == 0 and a % 100 != 0) or (a % 400 == 0): ####print("Y") # 是闰年 else: ####print("N") # 不是闰年
-
@ 2025-3-26 16:39:21输入年份
a = int(input().strip())
判断是否为闰年
if (a % 4 == 0 and a % 100 != 0) or (a % 400 == 0): print("Y") # 是闰年 else: print("N") # 不是闰年
- 1
信息
- ID
- 59
- 时间
- ms
- 内存
- MiB
- 难度
- 4
- 标签
- 递交数
- 195
- 已通过
- 96
- 上传者