結果
| 問題 |
No.208 王将
|
| コンテスト | |
| ユーザー |
kyo1
|
| 提出日時 | 2020-10-22 01:21:52 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 404 bytes |
| コンパイル時間 | 2,102 ms |
| コンパイル使用メモリ | 194,048 KB |
| 最終ジャッジ日時 | 2025-01-15 12:22:07 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 22 WA * 1 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
const std::vector<int> dx = {1, -1, 0, 0, 1, 1, -1, -1}, dy = {0, 0, 1, -1, 1, -1, 1, -1};
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
int gx, gy, ngx, ngy;
cin >> gx >> gy >> ngx >> ngy;
if (ngx < gx && ngy < gy && ngx == ngy) {
cout << max(gx, gy) + 1 << '\n';
} else {
cout << max(gx, gy) << '\n';
}
return 0;
}
kyo1