結果
問題 | No.1989 Pairing Multiset |
ユーザー |
![]() |
提出日時 | 2022-06-25 12:42:21 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 21 ms / 2,000 ms |
コード長 | 385 bytes |
コンパイル時間 | 934 ms |
コンパイル使用メモリ | 81,900 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-14 09:05:02 |
合計ジャッジ時間 | 1,944 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 18 |
ソースコード
#include <iostream>using namespace std;#include <atcoder/modint>using mint = atcoder::modint998244353;int main() {cin.tie(nullptr), ios::sync_with_stdio(false);int N, M;cin >> N >> M;mint ret = N, den = 1;for (int i = 1; i <= N * 2 + 1; ++i) den = den * i;for (int i = M; i <= M + N * 2; ++i) ret = ret * i;cout << (ret / den).val() << '\n';}