結果
問題 | No.797 Noelちゃんとピラミッド |
ユーザー |
|
提出日時 | 2019-03-15 22:18:45 |
言語 | Python2 (2.7.18) |
結果 |
TLE
|
実行時間 | - |
コード長 | 147 bytes |
コンパイル時間 | 745 ms |
コンパイル使用メモリ | 7,040 KB |
実行使用メモリ | 21,872 KB |
最終ジャッジ日時 | 2024-07-01 21:07:13 |
合計ジャッジ時間 | 4,102 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | TLE * 1 -- * 59 |
ソースコード
N = input()A = map(int, raw_input().split())ans = 0C = 1for i in xrange(N):ans += C * A[i]C *= N - i - 1C /= i + 1print ans