結果

問題 No.1081 和の和
ユーザー 👑 H20H20
提出日時 2021-08-04 10:14:42
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 82 ms / 2,000 ms
コード長 189 bytes
コンパイル時間 280 ms
コンパイル使用メモリ 86,712 KB
実行使用メモリ 75,924 KB
最終ジャッジ日時 2023-10-14 21:13:54
合計ジャッジ時間 1,902 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
71,376 KB
testcase_01 AC 76 ms
71,108 KB
testcase_02 AC 78 ms
71,104 KB
testcase_03 AC 78 ms
71,164 KB
testcase_04 AC 81 ms
75,792 KB
testcase_05 AC 77 ms
71,368 KB
testcase_06 AC 77 ms
71,400 KB
testcase_07 AC 82 ms
75,576 KB
testcase_08 AC 82 ms
75,924 KB
testcase_09 AC 81 ms
75,696 KB
testcase_10 AC 81 ms
75,700 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

print(*A)
0