結果
| 問題 |
No.2896 Monotonic Prime Factors
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-09-20 22:51:15 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 204 bytes |
| コンパイル時間 | 463 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-09-20 22:51:19 |
| 合計ジャッジ時間 | 1,799 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 2 |
| other | RE * 18 |
ソースコード
import math
import sympy
MOD = 998244353
Q = int(input())
cnt = 0
for _ in range(Q):
A, B = map(int, input().split())
cnt += sum(sympy.factorint(A).values())
print(math.comb(cnt-1, B-1)%MOD)