結果

問題 No.1081 和の和
ユーザー rythem00359rythem00359
提出日時 2020-08-13 17:23:49
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 1,437 ms / 2,000 ms
コード長 173 bytes
コンパイル時間 74 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 112,940 KB
最終ジャッジ日時 2024-04-18 01:40:42
合計ジャッジ時間 14,582 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
外部呼び出し有り
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1,437 ms
57,756 KB
testcase_01 AC 963 ms
57,500 KB
testcase_02 AC 960 ms
57,376 KB
testcase_03 AC 946 ms
57,632 KB
testcase_04 AC 965 ms
57,624 KB
testcase_05 AC 974 ms
57,752 KB
testcase_06 AC 959 ms
57,888 KB
testcase_07 AC 953 ms
57,500 KB
testcase_08 AC 961 ms
57,368 KB
testcase_09 AC 968 ms
57,492 KB
testcase_10 AC 976 ms
112,940 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from scipy.special import comb
N=int(input())
a=[*map(lambda args:args[1]*comb(N-1,args[0],exact=True),enumerate([*map(int,input().split())]))]
print(int(sum(a)%1000000007))
0