結果

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

ソースコード

diff #

import itertools

N = int(input())

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

if len(input_list) == N:
    sums = [sum(c) for c in itertools.combinations(input_list,2)]
    sums.sort()
    print(sums[1])
else:
    print('assert')
0