結果

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

ソースコード

diff #

s=open(0).read()
if len(s.split('\n')) < 4:
    print('"assert"')
    exit()
N,*A=map(int, s.split())
t = []
for i in range(3):
    for j in range(i + 1, 3):
        t.append(A[i] + A[j])
print(sorted({*t})[-2])
0