結果
| 問題 |
No.208 王将
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-08-01 18:08:23 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 284 bytes |
| コンパイル時間 | 583 ms |
| コンパイル使用メモリ | 65,656 KB |
| 最終ジャッジ日時 | 2025-02-23 19:41:02 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 17 WA * 6 |
ソースコード
#include <iostream>
using namespace std;
int main()
{
cin.tie(nullptr);
ios::sync_with_stdio(false);
int x, y, x2, y2;
cin >> x >> y >> x2 >> y2;
if (x == y && x2 == y2)
cout << x + 2 << '\n';
else
cout << max(x, y) << '\n';
return 0;
}