結果

問題 No.1714 Tag on Grid
ユーザー Shirotsume
提出日時 2021-10-22 21:24:16
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 176 bytes
コンパイル時間 194 ms
コンパイル使用メモリ 82,156 KB
実行使用メモリ 53,980 KB
最終ジャッジ日時 2024-09-23 04:34:40
合計ジャッジ時間 2,170 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 15 WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

h, w = map(int,input().split())
ni, nj = map(int,input().split())
mi, mj = map(int,input().split())

if abs(mi - ni) + abs(nj - mj) <= 1:
    print('Yes')
else:
    print('No')
0