library

This documentation is automatically generated by online-judge-tools/verification-helper

View the Project on GitHub shiomusubi496/library

:heavy_check_mark: test/aoj/DPL/DPL_5_F.test.cpp

Depends on

Code

#define PROBLEM "https://onlinejudge.u-aizu.ac.jp/problems/DPL_5_F"
#include "../../../other/template.hpp"
#include "../../../math/ModInt.hpp"
#include "../../../math/Combinatorics.hpp"
using namespace std;
using mint = modint1000000007;
using comb = Combinatorics<mint>;
int main() {
    ll n, k; scan >> n >> k;
    print << comb::comb(n - 1, k - 1) << endl;
}
Back to top page