結果
| 問題 | No.1714 Tag on Grid |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-10-22 21:23:32 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 2,000 ms |
| + 416µs | |
| コード長 | 309 bytes |
| 記録 | |
| コンパイル時間 | 335 ms |
| コンパイル使用メモリ | 90,712 KB |
| 実行使用メモリ | 7,980 KB |
| 最終ジャッジ日時 | 2026-09-02 23:08:16 |
| 合計ジャッジ時間 | 1,902 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 25 |
ソースコード
#include <cmath>
#include <string>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
int main() {
int H, W, xa, ya, xb, yb;
cin >> H >> W >> xa >> ya >> xb >> yb;
if ((xa + ya) % 2 == (xb + yb) % 2) {
cout << "No" << endl;
}
else {
cout << "Yes" << endl;
}
return 0;
}