結果
問題 |
No.2380 Sylow P-subgroup
|
ユーザー |
![]() |
提出日時 | 2023-07-15 11:30:45 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 41 ms / 2,000 ms |
コード長 | 214 bytes |
コンパイル時間 | 423 ms |
コンパイル使用メモリ | 82,060 KB |
実行使用メモリ | 52,352 KB |
最終ジャッジ日時 | 2024-09-16 19:50:49 |
合計ジャッジ時間 | 1,816 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 14 |
ソースコード
# coding: utf-8 # Your code here! MOD=998244353 N,P=map(int,input().split()) cands=[P] while P*cands[-1]<=10**12: cands.append(P*cands[-1]) P_num=0 for c in cands: P_num+=N//c print(pow(P,P_num,MOD))