結果
| 問題 |
No.2384 Permutations of Permutations
|
| コンテスト | |
| ユーザー |
gew1fw
|
| 提出日時 | 2025-06-12 14:24:27 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 194 bytes |
| コンパイル時間 | 414 ms |
| コンパイル使用メモリ | 82,712 KB |
| 実行使用メモリ | 58,736 KB |
| 最終ジャッジ日時 | 2025-06-12 14:24:38 |
| 合計ジャッジ時間 | 1,996 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 17 WA * 5 |
ソースコード
MOD = 998244353
n, k = map(int, input().split())
m = n - k
if m < 0:
print(0)
exit()
fact = 1
for i in range(1, m + 1):
fact = (fact * i) % MOD
ans = (k * fact) % MOD
print(ans)
gew1fw