結果

問題 No.851 テストケース
ユーザー neterukun
提出日時 2019-07-31 21:54:45
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 42 ms / 3,153 ms
コード長 291 bytes
コンパイル時間 142 ms
コンパイル使用メモリ 82,512 KB
実行使用メモリ 53,772 KB
最終ジャッジ日時 2024-07-05 07:18:58
合計ジャッジ時間 1,824 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a = list(map(int, input().split()))

if len(a) == 3:
    print('"assert"')
    exit()
    
x = a[0]
y = int(input())
z = int(input())

ans_set = set([])
ans_set.add(x + y)
ans_set.add(y + z)
ans_set.add(z + x)
li = list(ans_set)
li = sorted(li, reverse = True)
print(li[1])
0