結果

問題 No.851 テストケース
コンテスト
ユーザー amanoftheday02
提出日時 2019-08-01 12:49:21
言語 Python3
(3.14.3 + numpy 2.4.2 + scipy 1.17.0)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
AC  
実行時間 94 ms / 3,153 ms
コード長 330 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 577 ms
コンパイル使用メモリ 20,572 KB
実行使用メモリ 15,360 KB
最終ジャッジ日時 2026-03-26 14:24:18
合計ジャッジ時間 3,804 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

N = input()
A1_wk = input()
A1_list = A1_wk.split()

if len(A1_list) > 1:
    print("\"assert\"")
else:
    A1 = int(A1_list[0])
    A2 = int(input())
    A3 = int(input())
    ans_list = [A1+A2 , A2+A3 , A1+A3]
    ans_list.sort()
    if ans_list[1] == ans_list[2]:
        print(ans_list[0])
    else:
        print(ans_list[1])
0