結果

問題 No.1081 和の和
ユーザー TomoyarnTomoyarn
提出日時 2022-02-09 05:17:17
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 75 ms / 2,000 ms
コード長 221 bytes
コンパイル時間 316 ms
コンパイル使用メモリ 86,836 KB
実行使用メモリ 75,600 KB
最終ジャッジ日時 2023-09-06 06:55:34
合計ジャッジ時間 2,189 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 66 ms
71,228 KB
testcase_01 AC 65 ms
71,108 KB
testcase_02 AC 64 ms
71,500 KB
testcase_03 AC 64 ms
71,552 KB
testcase_04 AC 75 ms
75,600 KB
testcase_05 AC 67 ms
71,296 KB
testcase_06 AC 68 ms
71,296 KB
testcase_07 AC 70 ms
75,476 KB
testcase_08 AC 67 ms
75,452 KB
testcase_09 AC 70 ms
75,520 KB
testcase_10 AC 70 ms
75,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def yukicoder1081(N, A):
    for i in range(N - 1, 0, -1):
        for j in range(i):
            A[j] = A[j] + A[j + 1]
    return A[0] % (10 ** 9 + 7)

N, *A = map(int, open(0).read().split())
print(yukicoder1081(N, A))
0