結果
問題 | No.793 うし数列 2 |
ユーザー |
|
提出日時 | 2019-03-15 19:54:59 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 31 ms / 2,000 ms |
コード長 | 190 bytes |
コンパイル時間 | 86 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-07-01 20:05:25 |
合計ジャッジ時間 | 1,674 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 21 |
ソースコード
N = int(input())MOD = pow(10, 9)+7M = (4 * pow(10, N, MOD) - 1) % MOD# print(M)if M % 3 == 0:print(M // 3)elif M % 3 == 1:print((M + MOD) // 3)else:print((M+2*MOD) // 3)