結果

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

ソースコード

diff #

N = int(input())
a = [int(i) for i in input().split()]
if a.__len__() > 2:
    print("\"assert\"")
else:
    for i in range(2):
        a.append(int(input()))
    b = [sum(a)-p for p in a]
    b.sort(reverse=True)
    if b[0] > b[1]:
        print(b[1])
    else:
        print(b[2])
0