結果
| 問題 |
No.2384 Permutations of Permutations
|
| コンテスト | |
| ユーザー |
gew1fw
|
| 提出日時 | 2025-06-12 17:58:39 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 167 bytes |
| コンパイル時間 | 407 ms |
| コンパイル使用メモリ | 82,128 KB |
| 実行使用メモリ | 59,008 KB |
| 最終ジャッジ日時 | 2025-06-12 17:59:31 |
| 合計ジャッジ時間 | 2,007 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 17 WA * 5 |
ソースコード
MOD = 998244353
N, K = map(int, input().split())
m = N - K
fact = [1] * (m + 1)
for i in range(1, m + 1):
fact[i] = fact[i-1] * i % MOD
print(K * fact[m] % MOD)
gew1fw