結果

問題 No.2380 Sylow P-subgroup
ユーザー shobonvipshobonvip
提出日時 2023-07-14 21:24:14
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 71 ms / 2,000 ms
コード長 149 bytes
コンパイル時間 276 ms
コンパイル使用メモリ 87,184 KB
実行使用メモリ 71,612 KB
最終ジャッジ日時 2023-10-14 11:20:18
合計ジャッジ時間 2,438 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 66 ms
71,372 KB
testcase_01 AC 69 ms
71,420 KB
testcase_02 AC 66 ms
71,408 KB
testcase_03 AC 66 ms
71,208 KB
testcase_04 AC 68 ms
71,164 KB
testcase_05 AC 66 ms
71,220 KB
testcase_06 AC 68 ms
71,200 KB
testcase_07 AC 68 ms
71,116 KB
testcase_08 AC 68 ms
71,316 KB
testcase_09 AC 66 ms
71,540 KB
testcase_10 AC 67 ms
71,612 KB
testcase_11 AC 67 ms
71,292 KB
testcase_12 AC 69 ms
71,532 KB
testcase_13 AC 66 ms
71,412 KB
testcase_14 AC 71 ms
71,568 KB
testcase_15 AC 69 ms
71,428 KB
testcase_16 AC 68 ms
71,308 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def lagrange(n, p):
	ret = 0
	while n > 0:
		n //= p
		ret += n
	return ret

n, p = map(int,input().split())
print(pow(p, lagrange(n, p), 998244353))
0