結果
| 問題 | No.208 王将 |
| コンテスト | |
| ユーザー |
smiken_61
|
| 提出日時 | 2015-10-23 15:57:12 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 267 bytes |
| 記録 | |
| コンパイル時間 | 559 ms |
| コンパイル使用メモリ | 83,052 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-04-25 20:10:37 |
| 合計ジャッジ時間 | 3,286 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 23 |
ソースコード
#include <iostream>
#include <algorithm>
#include <stdlib.h>
#include <string>
#include <queue>
using namespace std;
int main() {
int gx,gy,jy,jx;
cin>>gx>>gy;
cin>>jx>>jy;
int ans=max(gx,gy);
if(gx==gy && jx==jy && jx<gx) ans++;
cout<<ans<<endl;
return 0;
}
smiken_61