結果
問題 |
No.1416 ショッピングモール
|
ユーザー |
|
提出日時 | 2021-03-07 18:00:14 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 226 bytes |
コンパイル時間 | 385 ms |
コンパイル使用メモリ | 81,792 KB |
実行使用メモリ | 68,864 KB |
最終ジャッジ日時 | 2024-10-08 23:31:47 |
合計ジャッジ時間 | 2,394 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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=N-1 for i in range(1,30): for j in range(2**i): if nu==0: print(ans) exit() ans+=p[N-1-nu]*i nu-=1