結果
| 問題 | 
                            No.208 王将
                             | 
                    
| コンテスト | |
| ユーザー | 
                             smiken_61
                         | 
                    
| 提出日時 | 2015-10-23 15:57:12 | 
| 言語 | C++11(廃止可能性あり)  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 2 ms / 1,000 ms | 
| コード長 | 267 bytes | 
| コンパイル時間 | 454 ms | 
| コンパイル使用メモリ | 61,964 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-10-09 16:27:55 | 
| 合計ジャッジ時間 | 1,185 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| 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