結果
| 問題 |
No.2380 Sylow P-subgroup
|
| コンテスト | |
| ユーザー |
lam6er
|
| 提出日時 | 2025-03-20 21:10:51 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 36 ms / 2,000 ms |
| コード長 | 149 bytes |
| コンパイル時間 | 184 ms |
| コンパイル使用メモリ | 82,520 KB |
| 実行使用メモリ | 54,108 KB |
| 最終ジャッジ日時 | 2025-03-20 21:11:03 |
| 合計ジャッジ時間 | 1,496 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 14 |
ソースコード
n, p = map(int, input().split())
mod = 998244353
e = 0
current = p
while current <= n:
e += n // current
current *= p
print(pow(p, e, mod))
lam6er