結果

問題 No.1714 Tag on Grid
ユーザー NatsubiSoganNatsubiSogan
提出日時 2021-10-22 21:28:44
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 237 bytes
コンパイル時間 248 ms
コンパイル使用メモリ 11,664 KB
実行使用メモリ 9,996 KB
最終ジャッジ日時 2023-10-24 12:20:20
合計ジャッジ時間 1,955 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
9,996 KB
testcase_01 AC 28 ms
9,996 KB
testcase_02 AC 29 ms
9,996 KB
testcase_03 AC 29 ms
9,996 KB
testcase_04 AC 28 ms
9,996 KB
testcase_05 AC 29 ms
9,996 KB
testcase_06 WA -
testcase_07 AC 28 ms
9,996 KB
testcase_08 AC 28 ms
9,996 KB
testcase_09 WA -
testcase_10 AC 27 ms
9,996 KB
testcase_11 AC 27 ms
9,996 KB
testcase_12 AC 28 ms
9,996 KB
testcase_13 AC 28 ms
9,996 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 29 ms
9,996 KB
testcase_19 WA -
testcase_20 AC 28 ms
9,996 KB
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 29 ms
9,996 KB
testcase_25 AC 29 ms
9,996 KB
testcase_26 AC 28 ms
9,996 KB
testcase_27 AC 28 ms
9,996 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

h, w = map(int, input().split())
ni, nj = map(int, input().split())
zi, zj = map(int, input().split())
if h == 1 or w == 1: print("Yes")
elif h == 2 or w == 2: print("Yes" if ((ni + nj) % 2) ^ ((zi + zj) % 2) else "No")
else: print("No")
0