結果
| 問題 | No.793 うし数列 2 | 
| コンテスト | |
| ユーザー |  fooractal | 
| 提出日時 | 2019-02-22 21:35:13 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 38 ms / 2,000 ms | 
| コード長 | 106 bytes | 
| コンパイル時間 | 325 ms | 
| コンパイル使用メモリ | 82,524 KB | 
| 実行使用メモリ | 53,292 KB | 
| 最終ジャッジ日時 | 2024-11-25 05:56:50 | 
| 合計ジャッジ時間 | 1,941 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 21 | 
ソースコード
N = int(input()) mod = 10 ** 9 + 7 print(((4 * pow(10, N, mod) + mod - 1) * pow(3, mod - 2, mod)) % mod)
