結果
| 問題 | 
                            No.920 あかあお
                             | 
                    
| コンテスト | |
| ユーザー | 
                             osrgy01
                         | 
                    
| 提出日時 | 2021-01-19 13:24:33 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 32 ms / 2,000 ms | 
| コード長 | 168 bytes | 
| コンパイル時間 | 370 ms | 
| コンパイル使用メモリ | 12,672 KB | 
| 実行使用メモリ | 10,624 KB | 
| 最終ジャッジ日時 | 2024-12-16 06:59:30 | 
| 合計ジャッジ時間 | 1,327 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 11 | 
ソースコード
a,b,c=map(int,input().split())
d=max(a,b)-min(a,b)
if (d==a or d==b) and c==0: print(0)
elif a+c<b or b+c<a:
    print(min(a+c,b+c))
else: print(max(c-d,0)//2+max(a,b))
            
            
            
        
            
osrgy01