結果
| 問題 |
No.1416 ショッピングモール
|
| コンテスト | |
| ユーザー |
👑 SPD_9X2
|
| 提出日時 | 2021-03-05 21:25:16 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 205 bytes |
| コンパイル時間 | 180 ms |
| コンパイル使用メモリ | 81,664 KB |
| 実行使用メモリ | 68,608 KB |
| 最終ジャッジ日時 | 2024-10-07 00:21:33 |
| 合計ジャッジ時間 | 2,087 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 1 WA * 20 |
ソースコード
"""
"""
import sys
from sys import stdin
N = int(input())
A = list(map(int,stdin.readline().split()))
A.reverse()
ans = 0
for i in range(1,N+1):
ans += (i.bit_length()-1) * A[i-1]
print (ans)
SPD_9X2