結果

問題 No.1714 Tag on Grid
ユーザー Hydru
提出日時 2021-10-22 21:28:05
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 38 ms / 2,000 ms
コード長 218 bytes
コンパイル時間 349 ms
コンパイル使用メモリ 82,296 KB
実行使用メモリ 53,508 KB
最終ジャッジ日時 2024-09-23 04:39:55
合計ジャッジ時間 2,063 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

from sys import exit
h,w=map(int,input().split())
n1,n2=map(int,input().split())
z1,z2=map(int,input().split())
if h==1 or w==1:
    print("Yes")
    exit()
if (n1+n2-z1-z2)%2==0:
    print("No")
else:
    print("Yes")
0