結果

問題 No.1081 和の和
ユーザー H3PO4H3PO4
提出日時 2020-06-19 21:22:52
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 132 ms / 2,000 ms
コード長 189 bytes
コンパイル時間 401 ms
コンパイル使用メモリ 10,480 KB
実行使用メモリ 29,556 KB
最終ジャッジ日時 2023-09-16 13:05:57
合計ジャッジ時間 3,798 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 128 ms
29,364 KB
testcase_01 AC 128 ms
29,420 KB
testcase_02 AC 129 ms
29,416 KB
testcase_03 AC 132 ms
29,360 KB
testcase_04 AC 129 ms
29,556 KB
testcase_05 AC 131 ms
29,388 KB
testcase_06 AC 128 ms
29,528 KB
testcase_07 AC 128 ms
29,540 KB
testcase_08 AC 124 ms
29,520 KB
testcase_09 AC 129 ms
29,380 KB
testcase_10 AC 125 ms
29,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import numpy as np

MOD = 10 ** 9 + 7

N = int(input())
A = np.array(list(map(int, input().split())), dtype=np.int64)
for _ in range(N - 1):
    A = A[:-1] + A[1:]
    A %= MOD
print(A[0])
0