結果

問題 No.240 ナイト散歩
ユーザー dangodango
提出日時 2023-06-14 16:32:59
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 78 ms / 2,000 ms
コード長 178 bytes
コンパイル時間 865 ms
コンパイル使用メモリ 87,076 KB
実行使用メモリ 71,456 KB
最終ジャッジ日時 2023-09-05 03:54:04
合計ジャッジ時間 5,289 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
71,304 KB
testcase_01 AC 77 ms
71,116 KB
testcase_02 AC 77 ms
71,396 KB
testcase_03 AC 78 ms
71,360 KB
testcase_04 AC 76 ms
71,080 KB
testcase_05 AC 74 ms
71,176 KB
testcase_06 AC 74 ms
71,184 KB
testcase_07 AC 77 ms
71,292 KB
testcase_08 AC 75 ms
71,360 KB
testcase_09 AC 75 ms
71,396 KB
testcase_10 AC 75 ms
71,028 KB
testcase_11 AC 76 ms
71,056 KB
testcase_12 AC 76 ms
71,384 KB
testcase_13 AC 75 ms
71,168 KB
testcase_14 AC 75 ms
71,188 KB
testcase_15 AC 76 ms
71,392 KB
testcase_16 AC 76 ms
71,360 KB
testcase_17 AC 77 ms
71,072 KB
testcase_18 AC 76 ms
71,228 KB
testcase_19 AC 77 ms
71,176 KB
testcase_20 AC 76 ms
71,348 KB
testcase_21 AC 76 ms
71,032 KB
testcase_22 AC 75 ms
71,208 KB
testcase_23 AC 75 ms
71,268 KB
testcase_24 AC 77 ms
71,224 KB
testcase_25 AC 75 ms
71,388 KB
testcase_26 AC 77 ms
71,028 KB
testcase_27 AC 75 ms
71,260 KB
testcase_28 AC 77 ms
71,348 KB
testcase_29 AC 76 ms
71,280 KB
testcase_30 AC 75 ms
71,080 KB
testcase_31 AC 77 ms
71,364 KB
testcase_32 AC 76 ms
71,408 KB
testcase_33 AC 74 ms
71,456 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

X, Y = map(lambda X: abs(int(X)), input().split())
print("YES" * ((max(X, Y) < 5 and (X != Y or X % 2 or X < 1)) or (4 < max(X, Y) < 7 and (X + Y) < 10 and (X + Y) % 2)) or "NO")
0