ログインしてください。
提出 #890034
ソースコード 拡げる
n = int(input())
s = [int(x) for x in input().split()]
s.reverse()
sum = 0
r = 1
for x in s:
sum += x * r
r *= 2
print(sum)
提出情報
| 提出日時 | |
|---|---|
| 問題 | A - CODE FESTIVAL 2015 |
| ユーザ | busuka |
| 言語 | Python (3.4.2) |
| 得点 | 0 |
| コード長 | 139 Byte |
| 結果 | RE |
| 実行時間 | 47 ms |
| メモリ | 3736 KiB |
ジャッジ結果
| セット名 | Sample | All | ||||
|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 0 / 100 | ||||
| 結果 |
|
|
| セット名 | テストケース |
|---|---|
| Sample | sample-01.txt, sample-02.txt |
| All | sample-01.txt, sample-02.txt, 01-01.txt, 01-02.txt, 01-03.txt, 01-04.txt, 01-05.txt |
| ケース名 | 結果 | 実行時間 | メモリ |
|---|---|---|---|
| 01-01.txt | RE | 47 ms | 3736 KiB |
| 01-02.txt | RE | 45 ms | 3684 KiB |
| 01-03.txt | RE | 45 ms | 3684 KiB |
| 01-04.txt | RE | 46 ms | 3728 KiB |
| 01-05.txt | RE | 47 ms | 3684 KiB |
| sample-01.txt | RE | 47 ms | 3732 KiB |
| sample-02.txt | RE | 46 ms | 3736 KiB |