結果

問題 No.793 うし数列 2
ユーザー mlihua09mlihua09
提出日時 2020-09-20 18:21:05
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 71 ms / 2,000 ms
コード長 115 bytes
コンパイル時間 372 ms
コンパイル使用メモリ 87,124 KB
実行使用メモリ 71,384 KB
最終ジャッジ日時 2023-09-06 16:26:15
合計ジャッジ時間 3,501 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,332 KB
testcase_01 AC 69 ms
71,188 KB
testcase_02 AC 69 ms
71,216 KB
testcase_03 AC 69 ms
71,340 KB
testcase_04 AC 71 ms
71,192 KB
testcase_05 AC 69 ms
71,352 KB
testcase_06 AC 71 ms
71,136 KB
testcase_07 AC 69 ms
71,064 KB
testcase_08 AC 69 ms
71,280 KB
testcase_09 AC 68 ms
71,224 KB
testcase_10 AC 69 ms
71,268 KB
testcase_11 AC 69 ms
71,052 KB
testcase_12 AC 69 ms
71,156 KB
testcase_13 AC 69 ms
71,252 KB
testcase_14 AC 69 ms
71,140 KB
testcase_15 AC 70 ms
71,292 KB
testcase_16 AC 69 ms
71,384 KB
testcase_17 AC 69 ms
71,260 KB
testcase_18 AC 69 ms
71,032 KB
testcase_19 AC 70 ms
71,212 KB
testcase_20 AC 70 ms
71,152 KB
testcase_21 AC 68 ms
70,988 KB
testcase_22 AC 68 ms
71,344 KB
権限があれば一括ダウンロードができます

ソースコード

diff #


N = int(input())
mod = 10 ** 9 + 7

print(((pow(10, N, mod) - 1) * pow(3, mod - 2, mod) + pow(10, N, mod)) % mod)
0