結果

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

ソースコード

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