結果

問題 No.851 テストケース
ユーザー gew1fw
提出日時 2025-06-12 15:03:21
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 42 ms / 3,153 ms
コード長 351 bytes
コンパイル時間 311 ms
コンパイル使用メモリ 82,408 KB
実行使用メモリ 54,152 KB
最終ジャッジ日時 2025-06-12 15:04:14
合計ジャッジ時間 2,201 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

lines = [line.strip() for line in sys.stdin if line.strip()]
n = int(lines[0])

if len(lines) == 2:
    print('"assert"')
else:
    a = [int(lines[1]), int(lines[2]), int(lines[3])]
    s1 = a[0] + a[1]
    s2 = a[0] + a[2]
    s3 = a[1] + a[2]
    sums = {s1, s2, s3}
    sorted_sums = sorted(sums, reverse=True)
    print(sorted_sums[1])
0