結果

問題 No.240 ナイト散歩
ユーザー tjake
提出日時 2015-12-20 13:27:02
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 168 bytes
コンパイル時間 81 ms
コンパイル使用メモリ 6,912 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-17 12:10:49
合計ジャッジ時間 1,317 ms
ジャッジサーバーID
(参考情報)
judge6 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 27 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

x, y = map(lambda x:abs(int(x)), raw_input().split())
if (x==y>0 and x%2<1) or x+y>9 or x>6 or y>6 or (x>4 and y>6 and (x+y)%2<1):
    print "NO"
else:
    print "YES"
0