結果

問題 No.2380 Sylow P-subgroup
ユーザー pitPpitP
提出日時 2023-07-14 22:02:13
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 70 ms / 2,000 ms
コード長 127 bytes
コンパイル時間 302 ms
コンパイル使用メモリ 86,852 KB
実行使用メモリ 71,560 KB
最終ジャッジ日時 2023-10-14 12:12:41
合計ジャッジ時間 2,435 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 67 ms
71,256 KB
testcase_01 AC 66 ms
71,256 KB
testcase_02 AC 66 ms
71,560 KB
testcase_03 AC 70 ms
71,244 KB
testcase_04 AC 64 ms
71,256 KB
testcase_05 AC 64 ms
71,256 KB
testcase_06 AC 65 ms
71,324 KB
testcase_07 AC 63 ms
71,248 KB
testcase_08 AC 66 ms
71,260 KB
testcase_09 AC 64 ms
71,056 KB
testcase_10 AC 63 ms
71,244 KB
testcase_11 AC 61 ms
71,044 KB
testcase_12 AC 63 ms
71,268 KB
testcase_13 AC 64 ms
71,468 KB
testcase_14 AC 64 ms
71,408 KB
testcase_15 AC 64 ms
71,372 KB
testcase_16 AC 66 ms
71,504 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

MOD = 998244353
N, P = map(int, input().split())
P_ = P
e = 0
while N >= P_:
    e += N // P_
    P_ *= P
print(pow(P, e, MOD))
0