結果
問題 |
No.240 ナイト散歩
|
ユーザー |
![]() |
提出日時 | 2017-08-07 16:33:19 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 347 bytes |
コンパイル時間 | 89 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-10-11 23:35:51 |
合計ジャッジ時間 | 2,191 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 25 WA * 5 |
ソースコード
X,Y = [int(i) for i in input().split()] X,Y = abs(X),abs(Y) if X<Y: X,Y = Y,X if X*Y >= 24: print("NO") elif X==3 and Y==0 or X==6 and Y==0: print("NO") elif X==1 and Y==1 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")