結果

問題 No.208 王将
ユーザー forest3
提出日時 2025-03-28 15:38:56
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 4 ms / 1,000 ms
コード長 273 bytes
コンパイル時間 1,712 ms
コンパイル使用メモリ 160,756 KB
実行使用メモリ 7,324 KB
最終ジャッジ日時 2025-03-28 15:38:59
合計ジャッジ時間 3,107 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

using ll = long long;
#define rep(i, n) for(int i = 0; i < n; i++)

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