結果

問題 No.1416 ショッピングモール
ユーザー kikage
提出日時 2021-08-12 16:58:19
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 53 ms / 1,000 ms
コード長 133 bytes
コンパイル時間 242 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 15,632 KB
最終ジャッジ日時 2024-10-01 21:41:29
合計ジャッジ時間 2,008 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
A=list(map(int,input().split()))
A.sort(reverse=True)
print(sum( [ sum( A[2**i-1:2**(i+1)-1] )*i for i in range(17)]))
0