結果

問題 No.793 うし数列 2
ユーザー brthyyjpbrthyyjp
提出日時 2021-10-07 11:17:09
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 83 ms / 2,000 ms
コード長 98 bytes
コンパイル時間 487 ms
コンパイル使用メモリ 86,984 KB
実行使用メモリ 71,032 KB
最終ジャッジ日時 2023-09-30 09:01:51
合計ジャッジ時間 3,381 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
70,904 KB
testcase_01 AC 77 ms
70,636 KB
testcase_02 AC 78 ms
70,624 KB
testcase_03 AC 78 ms
70,920 KB
testcase_04 AC 77 ms
70,500 KB
testcase_05 AC 78 ms
70,968 KB
testcase_06 AC 77 ms
70,904 KB
testcase_07 AC 75 ms
70,920 KB
testcase_08 AC 76 ms
70,628 KB
testcase_09 AC 76 ms
71,032 KB
testcase_10 AC 75 ms
70,924 KB
testcase_11 AC 77 ms
70,928 KB
testcase_12 AC 80 ms
70,928 KB
testcase_13 AC 80 ms
70,808 KB
testcase_14 AC 83 ms
70,840 KB
testcase_15 AC 80 ms
70,908 KB
testcase_16 AC 79 ms
70,732 KB
testcase_17 AC 78 ms
70,852 KB
testcase_18 AC 78 ms
70,516 KB
testcase_19 AC 78 ms
70,968 KB
testcase_20 AC 79 ms
70,636 KB
testcase_21 AC 78 ms
70,868 KB
testcase_22 AC 81 ms
70,844 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
mod = 10**9+7
ans = 4*pow(10, n, mod)-1
ans *= pow(3, mod-2, mod)
print(ans%mod)
0