結果
| 問題 | No.3394 Big Binom |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-12-01 02:43:09 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 383 bytes |
| 記録 | |
| コンパイル時間 | 5,748 ms |
| コンパイル使用メモリ | 334,868 KB |
| 実行使用メモリ | 16,204 KB |
| 最終ジャッジ日時 | 2025-12-01 02:43:23 |
| 合計ジャッジ時間 | 13,333 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 1 TLE * 2 -- * 18 |
ソースコード
#include <bits/stdc++.h>
#include <atcoder/all>
using namespace atcoder;
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using mint = modint998244353;
int main() {
int n, k;
cin >> n >> k;
if (k > n-k) k = n-k;
mint ans = 1;
rep(i, k) ans *= n-i;
rep(i, k) ans /= i+1;
cout << ans.val() << '\n';
return 0;
}