結果
問題 |
No.208 王将
|
ユーザー |
![]() |
提出日時 | 2017-03-12 15:18:30 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 373 bytes |
コンパイル時間 | 1,234 ms |
コンパイル使用メモリ | 158,880 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-30 00:26:36 |
合計ジャッジ時間 | 2,186 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 17 WA * 6 |
ソースコード
#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 &&(x<x2)) { cout << x+1 << "\n"; return 0; } if (x==y) { cout << x << "\n"; return 0; } int ret = max(x,y); cout << ret << "\n"; }