結果

問題 No.1081 和の和
ユーザー roarisroaris
提出日時 2020-06-21 12:42:28
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 76 ms / 2,000 ms
コード長 201 bytes
コンパイル時間 2,183 ms
コンパイル使用メモリ 86,824 KB
実行使用メモリ 76,220 KB
最終ジャッジ日時 2023-09-16 18:16:15
合計ジャッジ時間 1,869 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,236 KB
testcase_01 AC 72 ms
71,252 KB
testcase_02 AC 71 ms
71,396 KB
testcase_03 AC 71 ms
71,412 KB
testcase_04 AC 76 ms
76,024 KB
testcase_05 AC 72 ms
71,508 KB
testcase_06 AC 74 ms
71,264 KB
testcase_07 AC 75 ms
75,972 KB
testcase_08 AC 76 ms
76,220 KB
testcase_09 AC 76 ms
76,192 KB
testcase_10 AC 74 ms
75,988 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A = list(map(int, input().split()))
MOD = 10**9+7

for _ in range(N-1):
    nA = []
    
    for i in range(len(A)-1):
        nA.append((A[i]+A[i+1])%MOD)
    
    A = nA

print(A[0])
0