結果
| 問題 | 
                            No.920 あかあお
                             | 
                    
| コンテスト | |
| ユーザー | 
                             amaridekinai
                         | 
                    
| 提出日時 | 2019-11-10 18:47:56 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 265 bytes | 
| コンパイル時間 | 1,609 ms | 
| コンパイル使用メモリ | 165,324 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-09-23 03:57:46 | 
| 合計ジャッジ時間 | 2,081 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 11 | 
ソースコード
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll,ll> P;
const ll INF = 1LL << 50;
int main(){ 
  int x,y,z; cin >> y >> z >> x;
  while( x--){
    if( y >= z){ z++;} else{ y++;}
    
  }
  
  cout << min(y,z) << endl; return 0;
}
            
            
            
        
            
amaridekinai