結果

問題 No.851 テストケース
ユーザー masato-fullmoon
提出日時 2019-07-28 18:05:02
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 354 bytes
コンパイル時間 70 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-07-02 15:04:32
合計ジャッジ時間 1,365 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other AC * 15 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

input_list = []
for i in range(N):
    n = input()
    comp = n.strip('¥n').split()
    if len(comp) == 3:
        break
    else:
        input_list.append(int(n))

if len(input_list) == 3:
    sums = [sum(input_list[:2]),sum(input_list[1:3]),input_list[0]+input_list[-1]]
    sums.sort()
    print(sums[1])
else:
    print('assert')
0