結果

問題 No.1081 和の和
ユーザー chineristACchineristAC
提出日時 2020-06-19 21:23:16
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 76 ms / 2,000 ms
コード長 146 bytes
コンパイル時間 277 ms
コンパイル使用メモリ 86,836 KB
実行使用メモリ 75,716 KB
最終ジャッジ日時 2023-09-16 13:07:17
合計ジャッジ時間 1,839 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,400 KB
testcase_01 AC 73 ms
71,120 KB
testcase_02 AC 71 ms
71,092 KB
testcase_03 AC 70 ms
71,152 KB
testcase_04 AC 76 ms
75,300 KB
testcase_05 AC 73 ms
71,252 KB
testcase_06 AC 74 ms
71,292 KB
testcase_07 AC 75 ms
75,296 KB
testcase_08 AC 74 ms
75,552 KB
testcase_09 AC 73 ms
75,716 KB
testcase_10 AC 74 ms
75,344 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
A=list(map(int,input().split()))
mod=10**9+7
while len(A)>1:
    A=[(A[i]+A[i+1])%mod for i in range(len(A)-1)]

print(sum(A)%mod)
0