結果
| 問題 | No.9010 うるう年判定 |
| ユーザー |
maspy
|
| 提出日時 | 2020-03-22 13:09:09 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 93 ms / 2,000 ms |
| + 561µs | |
| コード長 | 313 bytes |
| 記録 | |
| コンパイル時間 | 596 ms |
| コンパイル使用メモリ | 21,412 KB |
| 実行使用メモリ | 15,992 KB |
| 最終ジャッジ日時 | 2026-07-26 17:02:25 |
| 合計ジャッジ時間 | 5,240 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 25 |
ソースコード
#!/usr/bin/ python3.8
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
N = int(read())
def check(N):
if N % 400 == 0:
return True
if N % 100 == 0:
return False
return N % 4 == 0
print('Yes' if check(N) else 'No')
maspy