結果

問題 No.851 テストケース
ユーザー gew1fw
提出日時 2025-06-12 20:11:18
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 39 ms / 3,153 ms
コード長 351 bytes
コンパイル時間 213 ms
コンパイル使用メモリ 81,924 KB
実行使用メモリ 53,628 KB
最終ジャッジ日時 2025-06-12 20:15:49
合計ジャッジ時間 1,851 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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