結果
| 問題 | No.1714 Tag on Grid |
| コンテスト | |
| ユーザー |
👑 Kazun
|
| 提出日時 | 2021-10-22 21:23:36 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 56 ms / 2,000 ms |
| + 809µs | |
| コード長 | 194 bytes |
| 記録 | |
| コンパイル時間 | 239 ms |
| コンパイル使用メモリ | 96,336 KB |
| 実行使用メモリ | 78,976 KB |
| 最終ジャッジ日時 | 2026-09-02 23:08:21 |
| 合計ジャッジ時間 | 3,238 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 25 |
ソースコード
H,W=map(int,input().split())
ni,nj=map(int,input().split())
zi,zj=map(int,input().split())
ans=0
if H==1 or W==1:
ans=1
elif (ni+nj)%2!=(zi+zj)%2:
ans=1
print("Yes" if ans else "No")
Kazun