結果

問題 No.208 王将
ユーザー はまやんはまやん
提出日時 2016-04-22 17:57:03
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 246 bytes
コンパイル時間 1,087 ms
コンパイル使用メモリ 157,816 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-10-04 15:06:44
合計ジャッジ時間 1,797 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 17 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
#define rep(i,a,b) for(int i=a;i<b;i++)

int main()
{
	int x, y; cin >> x >> y;
	int x2, y2; cin >> x2 >> y2;

	int ans = max(x, y);
	if ((x == y && x2 == y2) && x < x2) ans++;
	cout << ans << endl;
}
0