結果

問題 No.797 Noelちゃんとピラミッド
ユーザー ransewhale
提出日時 2019-03-16 04:15:39
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 173 bytes
コンパイル時間 137 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 21,936 KB
最終ジャッジ日時 2024-07-01 22:18:50
合計ジャッジ時間 21,478 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 20 RE * 37 OLE * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
a=list(map(int,input().split()))
c=[1]
for i in range(n):
	print(c[i])
	c.append((c[i]*(n-i-1))//(i+1))
print(sum([c[i]*a[i] for i in range(n)])%(1000000007))
0