結果

問題 No.1081 和の和
ユーザー neterukunneterukun
提出日時 2020-06-20 11:55:45
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 69 ms / 2,000 ms
コード長 186 bytes
コンパイル時間 1,334 ms
コンパイル使用メモリ 86,680 KB
実行使用メモリ 76,028 KB
最終ジャッジ日時 2023-09-16 17:06:36
合計ジャッジ時間 2,397 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 67 ms
71,168 KB
testcase_01 AC 67 ms
71,252 KB
testcase_02 AC 67 ms
71,020 KB
testcase_03 AC 64 ms
71,392 KB
testcase_04 AC 68 ms
75,848 KB
testcase_05 AC 64 ms
71,308 KB
testcase_06 AC 69 ms
75,576 KB
testcase_07 AC 69 ms
75,604 KB
testcase_08 AC 68 ms
75,692 KB
testcase_09 AC 69 ms
75,872 KB
testcase_10 AC 69 ms
76,028 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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


for _ in range(n - 1):
    for i in range(n - 1):
        a[i] = a[i] + a[i + 1]
        a[i] %= MOD

print(a[0])
0