結果
| 問題 | 
                            No.208 王将
                             | 
                    
| コンテスト | |
| ユーザー | 
                             greentea011
                         | 
                    
| 提出日時 | 2019-04-10 15:04:30 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 2 ms / 1,000 ms | 
| コード長 | 218 bytes | 
| コンパイル時間 | 727 ms | 
| コンパイル使用メモリ | 65,544 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-07-07 06:19:56 | 
| 合計ジャッジ時間 | 1,165 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 23 | 
ソースコード
#include <iostream>
#include <algorithm>
int main(){
    int x,y,x2,y2;
    std::cin>>x>>y>>x2>>y2;
    if (x==y && x2==y2 && x>x2) std::cout<<std::max(x,y)+1<<std::endl;
    else std::cout<<std::max(x,y)<<std::endl;
}
            
            
            
        
            
greentea011