結果

問題 No.851 テストケース
ユーザー _KingdomOfMoray
提出日時 2020-01-04 00:06:53
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 30 ms / 3,153 ms
コード長 456 bytes
コンパイル時間 83 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-11-22 19:51:34
合計ジャッジ時間 1,581 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

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

res = 0
if len(assert_list) == 3:
    res = '"assert"'
else:
    added_list = [int(input()) for i in range(2)]
    added_list.insert(0, assert_list[0])
    a, b, c = added_list
    res_list = [a + b, b + c, c + a]
    sorted_res_list = sorted(res_list)
    if sorted_res_list[2] == sorted_res_list[1]:
        res = sorted_res_list[0]
    else:
        res = sorted_res_list[1]
    
print(res)
0