結果
問題 |
No.208 王将
|
ユーザー |
![]() |
提出日時 | 2015-07-17 01:19:59 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 233 bytes |
コンパイル時間 | 377 ms |
コンパイル使用メモリ | 56,028 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-08 08:18:53 |
合計ジャッジ時間 | 1,108 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 22 WA * 1 |
ソースコード
#include<iostream> #include<algorithm> using namespace std; int main(void){ int x, y, hx, hy; cin >> x >> y >> hx >> hy; int a = max(x, y); if (hx < x && hx == hy){ cout << a + 1 << endl; } else cout << a << endl; return 0; }