結果

問題 No.1081 和の和
ユーザー nehan_der_thalnehan_der_thal
提出日時 2020-06-19 21:37:47
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 77 ms / 2,000 ms
コード長 164 bytes
コンパイル時間 268 ms
コンパイル使用メモリ 86,664 KB
実行使用メモリ 75,732 KB
最終ジャッジ日時 2023-09-16 13:40:08
合計ジャッジ時間 1,847 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,112 KB
testcase_01 AC 70 ms
71,224 KB
testcase_02 AC 67 ms
71,308 KB
testcase_03 AC 69 ms
71,240 KB
testcase_04 AC 77 ms
75,648 KB
testcase_05 AC 67 ms
71,216 KB
testcase_06 AC 69 ms
71,180 KB
testcase_07 AC 73 ms
75,700 KB
testcase_08 AC 74 ms
75,732 KB
testcase_09 AC 72 ms
75,664 KB
testcase_10 AC 72 ms
75,692 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N, = map(int, input().split())
X = list(map(int, input().split()))
for i in range(N-1):
    for j in range(N-1-i):
        X[j] = X[j]+X[j+1]
print(X[0]%(10**9+7))
0