結果
問題 | No.1416 ショッピングモール |
ユーザー |
![]() |
提出日時 | 2022-06-02 17:57:00 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 63 ms / 1,000 ms |
コード長 | 285 bytes |
コンパイル時間 | 186 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 15,760 KB |
最終ジャッジ日時 | 2024-09-21 02:03:49 |
合計ジャッジ時間 | 2,295 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 21 |
ソースコード
def check():ret = 0idx = 0for k in range(n):for _ in range(pow(2,k)):ret += A[idx] * kidx += 1if idx == n:return retn = int(input())A = list(map(int,input().split()))A.sort(reverse=True)print(check())