結果

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

ソースコード

diff #

N = int(input())

try:
    A1 = int(input())
    A2 = int(input())
    A3 = int(input())
except:
    print("\"assert\"")
    exit()
    
ans = []
ans.append(A1+A2)
ans.append(A2+A3)
ans.append(A1+A3)
ans = sorted(ans)

if ans[1] == ans[2]:
    print(ans[0])
else:
    print(ans[1])
0