結果

問題 No.1081 和の和
ユーザー dangodango
提出日時 2023-06-11 15:00:29
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 64 ms / 2,000 ms
コード長 139 bytes
コンパイル時間 1,793 ms
コンパイル使用メモリ 86,776 KB
実行使用メモリ 75,688 KB
最終ジャッジ日時 2023-08-31 01:57:20
合計ジャッジ時間 2,634 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 58 ms
71,088 KB
testcase_01 AC 60 ms
71,288 KB
testcase_02 AC 59 ms
71,060 KB
testcase_03 AC 58 ms
71,056 KB
testcase_04 AC 62 ms
75,300 KB
testcase_05 AC 59 ms
71,252 KB
testcase_06 AC 60 ms
71,148 KB
testcase_07 AC 64 ms
75,500 KB
testcase_08 AC 62 ms
75,688 KB
testcase_09 AC 62 ms
75,460 KB
testcase_10 AC 63 ms
75,528 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
P = [int(A) for A in input().split()]
while len(P) > 1:
    P = [A + B for A, B in zip(P, P[1:])]
print(P[0] % 1000000007)
0