結果
| 問題 | No.2130 分配方法の数え上げ mod 998244353 |
| コンテスト | |
| ユーザー |
H20
|
| 提出日時 | 2022-11-25 21:47:46 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 161 bytes |
| 記録 | |
| コンパイル時間 | 295 ms |
| コンパイル使用メモリ | 85,120 KB |
| 実行使用メモリ | 81,536 KB |
| 最終ジャッジ日時 | 2026-04-18 14:13:34 |
| 合計ジャッジ時間 | 6,552 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 14 WA * 22 TLE * 2 |
ソースコード
N = int(input())
M = int(input())
mod = 998244353
ans = pow(2,N,mod)
temp = 1
for i in range(1,M+1):
ans = (ans-temp)%mod
temp = temp*(M-i)//i
print(ans)
H20