結果

問題 No.208 王将
ユーザー elphe
提出日時 2024-08-01 18:10:20
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 284 bytes
コンパイル時間 537 ms
コンパイル使用メモリ 65,892 KB
最終ジャッジ日時 2025-02-23 19:41:05
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 21 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

#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 + 1 << '\n';
    else
        cout << max(x, y) << '\n';
    return 0;
}
0