結果
問題 | No.2326 Factorial to the Power of Factorial to the... |
ユーザー |
|
提出日時 | 2023-05-28 15:39:36 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 186 bytes |
コンパイル時間 | 497 ms |
コンパイル使用メモリ | 12,160 KB |
実行使用メモリ | 27,932 KB |
最終ジャッジ日時 | 2024-12-27 07:57:59 |
合計ジャッジ時間 | 68,413 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 TLE * 1 |
other | TLE * 20 |
ソースコード
N, P = map(int, input().split())A = int(N ** (N**N))mod = 10**9 + 7B = 0while A != 0:if A % P == 0:A = int(A // P)B += 1else:breakprint(B % mod)