100 Accepted
# | 状态 分数 | 耗时 | 内存占用 |
---|---|---|---|
#1 | Accepted 20 | 28ms | 3.8 MiB |
#2 | Accepted 20 | 29ms | 3.7 MiB |
#3 | Accepted 20 | 31ms | 4 MiB |
#4 | Accepted 20 | 32ms | 3.8 MiB |
#5 | Accepted 20 | 32ms | 3.6 MiB |
代码
def is_leap_year(year):
if (year % 4 == 0 and year % 100 != 0) or year % 400 == 0:
return 1
else:
return 0
year = int(input(""))
result = is_leap_year(year)
print(result)
信息
- 递交者
- 题目
- J0029 【深基3.例3】闰年判断
- 语言
- Python3
- 代码长度
- 195 Bytes
- 递交时间
- 2024-2-28 19:34:20
- 评测时间
- 2024-2-28 19:34:20
- 分数
- 100
- 总耗时
- 151ms
- 峰值时间
- 32ms
- 峰值内存
- 4 MiB