結果
| 問題 | No.1416 ショッピングモール | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2021-03-07 18:02:32 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 222 bytes | 
| コンパイル時間 | 385 ms | 
| コンパイル使用メモリ | 82,588 KB | 
| 実行使用メモリ | 70,744 KB | 
| 最終ジャッジ日時 | 2024-10-08 23:32:39 | 
| 合計ジャッジ時間 | 2,728 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 1 WA * 20 | 
ソースコード
N= int(input())
p=list(map(int,input().split()))
p.sort()
p=p[:-1]
ans=0
nu=0
for i in range(1,30):
    for j in range(2**i):
        if nu==N-1:
            print(ans)
            exit()
        ans+=p[nu]*i
        nu+=1
            
            
            
        