結果
問題 |
No.1416 ショッピングモール
|
ユーザー |
![]() |
提出日時 | 2021-03-14 18:46:36 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 60 ms / 1,000 ms |
コード長 | 168 bytes |
コンパイル時間 | 265 ms |
コンパイル使用メモリ | 12,800 KB |
実行使用メモリ | 15,752 KB |
最終ジャッジ日時 | 2024-11-06 08:10:46 |
合計ジャッジ時間 | 2,193 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 21 |
ソースコード
N = int(input()) A = list(map(int, input().split())) A.sort(reverse=True) F = [i.bit_length()-1 for i in range(1, N+1)] ans = sum(a*f for a, f in zip(A, F)) print(ans)