結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 62 ms
70,900 KB
testcase_01 AC 61 ms
70,960 KB
testcase_02 AC 59 ms
71,152 KB
testcase_03 AC 60 ms
71,256 KB
testcase_04 AC 60 ms
71,356 KB
testcase_05 AC 62 ms
71,152 KB
testcase_06 AC 63 ms
71,152 KB
testcase_07 AC 60 ms
71,096 KB
testcase_08 AC 60 ms
70,904 KB
testcase_09 AC 62 ms
71,216 KB
testcase_10 AC 62 ms
71,292 KB
testcase_11 AC 60 ms
71,160 KB
testcase_12 AC 61 ms
71,128 KB
testcase_13 AC 61 ms
71,276 KB
testcase_14 AC 63 ms
71,292 KB
testcase_15 AC 63 ms
71,176 KB
testcase_16 AC 61 ms
71,076 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,p = map(int,input().split())
mod = 998244353

num = 0

now = p
while now <= n:
	num += n//now
	now *= p
print(pow(p,num,mod))
0