結果
問題 |
No.851 テストケース
|
ユーザー |
|
提出日時 | 2019-07-28 18:43:34 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 411 bytes |
コンパイル時間 | 74 ms |
コンパイル使用メモリ | 12,800 KB |
実行使用メモリ | 11,008 KB |
最終ジャッジ日時 | 2024-07-02 15:04:42 |
合計ジャッジ時間 | 1,362 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 RE * 1 |
other | AC * 7 RE * 13 |
ソースコード
import itertools N = int(input()) input_list = [] for i in range(N): n = input() if len(n.split()) == 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() sums = set(sums) if len(sums) == N: print(sums[1]) else: print(min(sums)) else: print('"assert"')