結果
| 問題 |
No.2384 Permutations of Permutations
|
| コンテスト | |
| ユーザー |
lam6er
|
| 提出日時 | 2025-04-16 15:31:07 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 154 bytes |
| コンパイル時間 | 260 ms |
| コンパイル使用メモリ | 82,256 KB |
| 実行使用メモリ | 59,312 KB |
| 最終ジャッジ日時 | 2025-04-16 15:36:11 |
| 合計ジャッジ時間 | 2,050 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 17 WA * 5 |
ソースコード
mod = 998244353
n, k = map(int, input().split())
m = n - k
fact = 1
for i in range(1, m + 1):
fact = fact * i % mod
ans = k * fact % mod
print(ans)
lam6er