結果
問題 |
No.1416 ショッピングモール
|
ユーザー |
|
提出日時 | 2021-08-12 16:54:29 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 133 bytes |
コンパイル時間 | 253 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 15,760 KB |
最終ジャッジ日時 | 2024-10-01 21:37:52 |
合計ジャッジ時間 | 2,133 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 18 WA * 3 |
ソースコード
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(14)]))