結果
| 問題 | 
                            No.208 王将
                             | 
                    
| コンテスト | |
| ユーザー | 
                             izryt(趣味)
                         | 
                    
| 提出日時 | 2016-01-15 12:25:25 | 
| 言語 | C++11(廃止可能性あり)  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 190 bytes | 
| コンパイル時間 | 1,115 ms | 
| コンパイル使用メモリ | 159,524 KB | 
| 実行使用メモリ | 6,948 KB | 
| 最終ジャッジ日時 | 2024-09-19 19:05:31 | 
| 合計ジャッジ時間 | 1,886 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 17 WA * 6 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main()
{
    int x, y, x2, y2; cin >> x >> y >> x2 >> y2;
    cout << max(x, y) + ((x2 == 0 && x == 0) || (y2 == 0 && y == 0)) << endl;
}
            
            
            
        
            
izryt(趣味)