結果
| 問題 |
No.2130 分配方法の数え上げ mod 998244353
|
| コンテスト | |
| ユーザー |
H20
|
| 提出日時 | 2022-11-25 21:47:46 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 161 bytes |
| コンパイル時間 | 252 ms |
| コンパイル使用メモリ | 82,176 KB |
| 実行使用メモリ | 80,384 KB |
| 最終ジャッジ日時 | 2024-10-02 04:23:47 |
| 合計ジャッジ時間 | 5,864 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 7 WA * 20 TLE * 1 -- * 10 |
ソースコード
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