結果
問題 |
No.1126 SUM
|
ユーザー |
![]() |
提出日時 | 2024-06-20 14:47:56 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 12 ms / 1,000 ms |
コード長 | 397 bytes |
コンパイル時間 | 2,254 ms |
コンパイル使用メモリ | 194,884 KB |
最終ジャッジ日時 | 2025-02-21 23:31:48 |
ジャッジサーバーID (参考情報) |
judge4 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 26 |
ソースコード
#include <bits/stdc++.h> using namespace std; void fast_io() { ios_base::sync_with_stdio(false); cin.tie(nullptr); } #include <atcoder/modint> using mint = atcoder::modint1000000007; int main() { fast_io(); int n, m; cin >> n >> m; mint ans = 1; for (int i = 0; i <= n; i++) { ans *= m + 1 - i; ans /= n + 1 - i; } cout << ans.val() << endl; }