結果

問題 No.1081 和の和
ユーザー TnaTna
提出日時 2022-07-27 09:22:18
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 137 ms / 2,000 ms
コード長 219 bytes
コンパイル時間 141 ms
コンパイル使用メモリ 10,524 KB
実行使用メモリ 29,656 KB
最終ジャッジ日時 2023-09-23 17:21:46
合計ジャッジ時間 4,218 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 132 ms
29,656 KB
testcase_01 AC 131 ms
29,400 KB
testcase_02 AC 134 ms
29,476 KB
testcase_03 AC 137 ms
29,620 KB
testcase_04 AC 133 ms
29,624 KB
testcase_05 AC 133 ms
29,512 KB
testcase_06 AC 131 ms
29,572 KB
testcase_07 AC 132 ms
29,520 KB
testcase_08 AC 132 ms
29,500 KB
testcase_09 AC 133 ms
29,416 KB
testcase_10 AC 130 ms
29,408 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import numpy as np

N = int(input())
data = [int(x) for x in input().split()]
for i in range(N-1):
    data = [data[i-1] + data[i] for i in range(1, len(data))]
#     print(data)
# print(data)
print(data[0]%((10**9)+7))
0