結果

問題 No.1102 Remnants
ユーザー tyawanmusityawanmusi
提出日時 2020-07-03 23:29:15
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
MLE  
実行時間 -
コード長 129 bytes
コンパイル時間 128 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 818,104 KB
最終ジャッジ日時 2024-09-17 05:02:59
合計ジャッジ時間 2,426 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 2 MLE * 1 -- * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

n,k,*a=map(int,open(0).read().split());m=10**9+7;d=1
for i in range(1,n):d*=(k+i)*pow(i,m-2,m);a[i]*=d;a[-i-1]*=d
print(sum(a)%m)
0