結果

問題 No.1081 和の和
ユーザー syunsukesyunsuke
提出日時 2020-11-02 08:24:58
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 98 ms / 2,000 ms
コード長 195 bytes
コンパイル時間 281 ms
コンパイル使用メモリ 87,232 KB
実行使用メモリ 76,752 KB
最終ジャッジ日時 2023-09-29 11:43:41
合計ジャッジ時間 2,304 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 87 ms
71,464 KB
testcase_01 AC 87 ms
71,704 KB
testcase_02 AC 87 ms
71,580 KB
testcase_03 AC 90 ms
71,608 KB
testcase_04 AC 98 ms
76,704 KB
testcase_05 AC 86 ms
71,612 KB
testcase_06 AC 89 ms
71,688 KB
testcase_07 AC 96 ms
76,600 KB
testcase_08 AC 95 ms
76,752 KB
testcase_09 AC 97 ms
76,748 KB
testcase_10 AC 97 ms
76,460 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
L=list(map(int,input().split()))

import copy

for i in range(N-1):
    l=[]
    for j in range(1,N-i):
        l.append((L[j]+L[j-1])%(10**9+7))
    L=copy.deepcopy(l)
print(l[0])
0