結果

問題 No.208 王将
ユーザー KKT89
提出日時 2020-10-12 20:49:50
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 273 bytes
コンパイル時間 1,867 ms
コンパイル使用メモリ 192,048 KB
最終ジャッジ日時 2025-01-15 06:56:23
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;

int main(){
	cin.tie(nullptr);
	ios::sync_with_stdio(false);
	int x,y,xx,yy; cin >> x >> y >> xx >> yy;
	if(xx==yy and x==y and xx<x){
		cout << x+1 << endl;
	}
	else{
		cout << max(x,y) << endl;
	}
}
0