結果
| 問題 |
No.851 テストケース
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-07-28 18:46:34 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 30 ms / 3,153 ms |
| コード長 | 433 bytes |
| コンパイル時間 | 76 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-07-02 15:04:44 |
| 合計ジャッジ時間 | 1,322 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
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 = list(set(sums))
sums.sort()
if len(sums) == N:
print(sums[1])
else:
print(min(sums))
else:
print('"assert"')