結果
| 問題 | No.208 王将 |
| コンテスト | |
| ユーザー |
nak3
|
| 提出日時 | 2017-03-12 15:19:50 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 1,000 ms |
| + 385µs | |
| コード長 | 373 bytes |
| 記録 | |
| コンパイル時間 | 846 ms |
| コンパイル使用メモリ | 173,996 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-08-02 02:17:33 |
| 合計ジャッジ時間 | 2,619 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 23 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define INF 2000000000
#define MOD 1000000007
typedef long long ll;
typedef pair<int, int> P;
int main()
{
int x,y;
int x2,y2;
cin >> x >> y >> x2 >> y2;
if (x==y&&x2==y2 &&(x2<x)) {
cout << x+1 << "\n";
return 0;
}
if (x==y) {
cout << x << "\n";
return 0;
}
int ret = max(x,y);
cout << ret << "\n";
}
nak3