結果

問題 No.797 Noelちゃんとピラミッド
ユーザー 💕💖💞
提出日時 2019-05-11 19:20:51
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 183 bytes
コンパイル時間 183 ms
コンパイル使用メモリ 81,792 KB
実行使用メモリ 328,940 KB
最終ジャッジ日時 2024-07-02 01:17:10
合計ジャッジ時間 5,325 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other TLE * 1 -- * 59
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

xs = list(map(int, input().split()))

while len(xs) != 1:
    pxs = []
    for i in range(len(xs)-1):
        pxs.append(xs[i] + xs[i+1])
    xs = pxs

print(xs[-1])
0