結果

問題 No.2384 Permutations of Permutations
ユーザー かつっぱ競プロかつっぱ競プロ
提出日時 2023-07-14 23:00:39
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 160 bytes
コンパイル時間 678 ms
コンパイル使用メモリ 10,640 KB
実行使用メモリ 16,808 KB
最終ジャッジ日時 2023-10-14 13:24:25
合計ジャッジ時間 4,032 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
16,620 KB
testcase_01 AC 73 ms
16,692 KB
testcase_02 AC 72 ms
16,692 KB
testcase_03 AC 73 ms
16,540 KB
testcase_04 AC 75 ms
16,652 KB
testcase_05 AC 73 ms
16,588 KB
testcase_06 AC 73 ms
16,612 KB
testcase_07 AC 73 ms
16,660 KB
testcase_08 AC 75 ms
16,276 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 78 ms
16,616 KB
testcase_15 AC 92 ms
16,612 KB
testcase_16 AC 76 ms
16,564 KB
testcase_17 AC 75 ms
16,432 KB
testcase_18 AC 75 ms
16,680 KB
testcase_19 AC 76 ms
16,648 KB
testcase_20 AC 77 ms
16,680 KB
testcase_21 AC 75 ms
16,644 KB
testcase_22 AC 75 ms
16,580 KB
testcase_23 AC 74 ms
16,708 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

MOD = 998244353
fact = [1] * 220000

for i in range(1, 220000):
    fact[i] = fact[i-1] * i % MOD


N, K = map(int, input().split())
print(fact[N-K] * K % MOD)
0