結果
問題 |
No.797 Noelちゃんとピラミッド
|
ユーザー |
![]() |
提出日時 | 2019-03-15 22:02:28 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 210 bytes |
コンパイル時間 | 233 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 27,080 KB |
最終ジャッジ日時 | 2024-07-01 20:58:23 |
合計ジャッジ時間 | 4,129 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | TLE * 1 -- * 59 |
ソースコード
n = int(input()) lis = list(map(int,input().split())) num = 0 ans = 0 for i in range(n//2): num += 2 ** i ans += lis[i] * num ans += lis[-(1 + i)] * num if len(lis)%2:ans -= lis[(n-1)//2] print(ans)