結果

問題 No.1714 Tag on Grid
コンテスト
ユーザー flippergo
提出日時 2024-11-19 15:47:31
言語 PyPy3
(7.3.23 + ACL)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 23 ms / 2,000 ms
+ 949µs
コード長 232 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 61 ms
コンパイル使用メモリ 81,084 KB
実行使用メモリ 55,796 KB
最終ジャッジ日時 2026-09-26 17:14:05
合計ジャッジ時間 2,436 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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")
else:
    d = abs(ni-zi)+abs(nj-zj)
    if d%2==0:
        print("No")
    else:
        print("Yes")
0