結果

問題 No.2130 分配方法の数え上げ mod 998244353
ユーザー 👑 tatyam
提出日時 2022-11-25 21:22:27
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 399 bytes
コンパイル時間 2,732 ms
コンパイル使用メモリ 244,616 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-10-02 03:50:47
合計ジャッジ時間 3,604 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 9 WA * 29
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#include <atcoder/modint>
using namespace std;
using ll = long long;
using mint = atcoder::modint998244353;
const ll INF = LLONG_MAX / 4;
#define rep(i,a,b) for(ll i = a; i < b; i++)
template<class T, class U> bool chmax(T& a, U b){ if(a >= b) return 0; a = b; return 1; }


int main(){
    ll N, M;
    cin >> N >> M;
    cout << mint{max(0LL, N - M + 1)}.val() << endl;
}
0