結果

問題 No.851 テストケース
ユーザー toshiro_yanagi
提出日時 2020-10-10 17:59:31
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 34 ms / 3,153 ms
コード長 264 bytes
コンパイル時間 94 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-07-20 16:05:27
合計ジャッジ時間 1,729 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

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

if len(a) > 1:
    print('"assert"')
    exit()

for i in range(2):
    a.append(int(input()))

b = set()
b.add(a[0] + a[1])
b.add(a[0] + a[2])
b.add(a[1] + a[2])

c = list(b)
c.sort()
c.reverse()

print(c[1])
0