結果
問題 |
No.208 王将
|
ユーザー |
|
提出日時 | 2018-08-30 22:48:20 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 439 bytes |
コンパイル時間 | 1,626 ms |
コンパイル使用メモリ | 166,944 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-13 20:36:32 |
合計ジャッジ時間 | 2,377 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 23 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define sorted(a) sort(a.begin(), a.end()); typedef long long ll; const long mod = 1e9 + 7; int main(void) { #ifdef DEBUG freopen("input.txt", "r", stdin); #endif ios_base::sync_with_stdio(false); cin.tie(NULL); int X, Y, X2, Y2; cin >> X >> Y; cin >> X2 >> Y2; if (X == Y && X2 == Y2 && X > X2) cout << X + 1 << endl; else cout << max(X, Y) << endl; return 0; }