結果
問題 | No.1714 Tag on Grid |
ユーザー |
![]() |
提出日時 | 2021-10-22 21:23:24 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 294 bytes |
コンパイル時間 | 540 ms |
コンパイル使用メモリ | 64,300 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-23 04:32:10 |
合計ジャッジ時間 | 1,401 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 25 |
ソースコード
#include <iostream> using namespace std; typedef long long ll; int main() { int h, w; cin >> h >> w; int x[2], y[2]; cin >> x[0] >> y[0] >> x[1] >> y[1]; if(h == 1 || w == 1 || (x[0] + y[0]) % 2 != (x[1] + y[1]) % 2) cout << "Yes" << endl; else cout << "No" << endl; }