結果

問題 No.268 ラッピング(Easy)
ユーザー zombietanzombietan
提出日時 2016-06-02 10:29:22
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 15 ms / 5,000 ms
コード長 268 bytes
コンパイル時間 171 ms
コンパイル使用メモリ 10,528 KB
実行使用メモリ 8,236 KB
最終ジャッジ日時 2023-07-29 17:33:17
合計ジャッジ時間 1,226 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
8,152 KB
testcase_01 AC 15 ms
8,080 KB
testcase_02 AC 14 ms
8,056 KB
testcase_03 AC 15 ms
8,056 KB
testcase_04 AC 15 ms
8,056 KB
testcase_05 AC 15 ms
8,136 KB
testcase_06 AC 14 ms
8,060 KB
testcase_07 AC 15 ms
8,092 KB
testcase_08 AC 15 ms
8,236 KB
testcase_09 AC 15 ms
8,064 KB
testcase_10 AC 15 ms
8,204 KB
testcase_11 AC 15 ms
8,204 KB
testcase_12 AC 15 ms
8,084 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import itertools
L = list(map(int, input().split()))
rby = sorted(list(map(int,input().split())), reverse=True)
round = []
for x, y in itertools.combinations(L, 2):
    round.append((x+y)*2)
round.sort()
ans = 0
for i, j in zip(round, rby):
    ans += i * j
print(ans)
0