結果

問題 No.797 Noelちゃんとピラミッド
ユーザー pluto77pluto77
提出日時 2019-03-24 12:42:42
言語 Python2
(2.7.18)
結果
AC  
実行時間 226 ms / 2,000 ms
コード長 184 bytes
コンパイル時間 41 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 14,996 KB
最終ジャッジ日時 2024-04-09 20:51:04
合計ジャッジ時間 9,468 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 10 ms
6,812 KB
testcase_01 AC 10 ms
6,944 KB
testcase_02 AC 10 ms
6,944 KB
testcase_03 AC 214 ms
14,972 KB
testcase_04 AC 226 ms
14,864 KB
testcase_05 AC 214 ms
14,992 KB
testcase_06 AC 213 ms
14,864 KB
testcase_07 AC 215 ms
14,968 KB
testcase_08 AC 218 ms
14,864 KB
testcase_09 AC 214 ms
14,996 KB
testcase_10 AC 213 ms
14,864 KB
testcase_11 AC 212 ms
14,864 KB
testcase_12 AC 212 ms
14,868 KB
testcase_13 AC 218 ms
14,996 KB
testcase_14 AC 214 ms
14,868 KB
testcase_15 AC 213 ms
14,804 KB
testcase_16 AC 217 ms
14,868 KB
testcase_17 AC 210 ms
14,992 KB
testcase_18 AC 212 ms
14,992 KB
testcase_19 AC 213 ms
14,864 KB
testcase_20 AC 212 ms
14,992 KB
testcase_21 AC 210 ms
14,996 KB
testcase_22 AC 219 ms
14,868 KB
testcase_23 AC 158 ms
12,516 KB
testcase_24 AC 57 ms
8,116 KB
testcase_25 AC 135 ms
11,384 KB
testcase_26 AC 127 ms
11,180 KB
testcase_27 AC 210 ms
14,604 KB
testcase_28 AC 188 ms
13,940 KB
testcase_29 AC 35 ms
7,424 KB
testcase_30 AC 50 ms
7,908 KB
testcase_31 AC 151 ms
12,484 KB
testcase_32 AC 70 ms
8,920 KB
testcase_33 AC 124 ms
11,160 KB
testcase_34 AC 92 ms
9,812 KB
testcase_35 AC 211 ms
14,996 KB
testcase_36 AC 30 ms
7,040 KB
testcase_37 AC 188 ms
14,032 KB
testcase_38 AC 199 ms
14,144 KB
testcase_39 AC 129 ms
11,364 KB
testcase_40 AC 30 ms
7,168 KB
testcase_41 AC 42 ms
7,552 KB
testcase_42 AC 125 ms
11,112 KB
testcase_43 AC 10 ms
6,944 KB
testcase_44 AC 10 ms
6,940 KB
testcase_45 AC 9 ms
6,940 KB
testcase_46 AC 9 ms
6,940 KB
testcase_47 AC 9 ms
6,940 KB
testcase_48 AC 9 ms
6,944 KB
testcase_49 AC 9 ms
6,940 KB
testcase_50 AC 10 ms
6,940 KB
testcase_51 AC 10 ms
6,944 KB
testcase_52 AC 10 ms
6,940 KB
testcase_53 AC 10 ms
6,940 KB
testcase_54 AC 9 ms
6,944 KB
testcase_55 AC 9 ms
6,940 KB
testcase_56 AC 9 ms
6,940 KB
testcase_57 AC 9 ms
6,944 KB
testcase_58 AC 10 ms
6,940 KB
testcase_59 AC 10 ms
6,940 KB
testcase_60 AC 10 ms
6,940 KB
testcase_61 AC 10 ms
6,940 KB
testcase_62 AC 9 ms
6,944 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#yuki797

mod=10**9+7
n=int(raw_input())
a=map(int,raw_input().split())
res=0
t=1
for i in xrange(n):
 res+=t*a[i]
 res%=mod
 t*=n-i-1
 t%=mod
 t*=pow(i+1,mod-2,mod)
 t%=mod
print res
0