結果
| 問題 | 
                            No.851 テストケース
                             | 
                    
| コンテスト | |
| ユーザー | 
                             fV9TwBhUoa9S3eV
                         | 
                    
| 提出日時 | 2019-10-29 15:43:33 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 568 bytes | 
| コンパイル時間 | 86 ms | 
| コンパイル使用メモリ | 12,416 KB | 
| 実行使用メモリ | 10,624 KB | 
| 最終ジャッジ日時 | 2024-09-14 21:30:02 | 
| 合計ジャッジ時間 | 1,645 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 WA * 1 | 
| other | AC * 17 WA * 3 | 
ソースコード
# No.851 テストケース
n = int(input())
a = []
tmp = input()
if tmp.count(' ') > 0:
    print('\"assert\"')
else:
    a.append(int(tmp))
    for i in range(1, n):
        a.append(int(input()))
    
    total_twos = [a[0] + a[1], a[1] + a[2], a[2] + a[0]]
    if total_twos.count(max(total_twos)) > 1:
        print(max(total_twos))
    elif total_twos.count(min(total_twos)) > 1:
        print(min(total_twos))
    else:
        for j in total_twos:
            if j != min(total_twos) and j != max(total_twos):
                print(j)
                break
            
            
            
        
            
fV9TwBhUoa9S3eV