結果
| 問題 |
No.208 王将
|
| コンテスト | |
| ユーザー |
nak3
|
| 提出日時 | 2017-03-12 15:19:50 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 373 bytes |
| コンパイル時間 | 1,619 ms |
| コンパイル使用メモリ | 157,040 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-30 00:26:54 |
| 合計ジャッジ時間 | 2,235 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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