結果
問題 | No.8041 なんとかのはなうらない |
ユーザー |
![]() |
提出日時 | 2020-03-22 13:17:59 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 36 ms / 2,000 ms |
コード長 | 348 bytes |
コンパイル時間 | 147 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,496 KB |
最終ジャッジ日時 | 2024-12-24 17:24:13 |
合計ジャッジ時間 | 1,540 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 13 |
ソースコード
#!/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 solve(N): if N & 1: # 引かなければいけない return N % 4 != 0 # 引いてはならない return (N - 1) % 4 != 0 print('Yes' if solve(N) else 'No')