結果
問題 | No.240 ナイト散歩 |
ユーザー |
![]() |
提出日時 | 2017-08-07 16:38:01 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 31 ms / 2,000 ms |
コード長 | 327 bytes |
コンパイル時間 | 120 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-10-11 22:27:49 |
合計ジャッジ時間 | 2,221 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 30 |
ソースコード
X,Y = [int(i) for i in input().split()]X,Y = abs(X),abs(Y)if X<Y:X,Y = Y,Xif X*Y >= 24:print("NO")elif X>6 or Y>6:print("NO")elif X==6 and Y==0 or X==5 and Y==1:print("NO")elif X==2 and Y==2 or X==6 and Y==2:print("NO")elif X==5 and Y==3 or X==4 and Y==4:print("NO")else:print("YES")