# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1148740 | sonamoo | 악수 (kriii4_D) | C++20 | 145 ms | 6352 KiB |
#include <bits/stdc++.h>
#define FastIO ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
#define pii pair<int,int>
#define ll long long int
#define SIZE 500005
#define all(v) v.begin(), v.end()
#define pb push_back
#define MOD 1000000007
#define INF 1000000007
using namespace std;
ll C[44][805] , D[44][805] , comb[888][888] , inv[888] , fact[888];
ll POW(ll x , ll y) {
if (y == 0) return 1;
if (y == 1) return x%MOD;
ll t = POW(x , y/2);
if (y%2 == 1) return ((t*t%MOD)*x)%MOD;
else return t*t%MOD;
}
int main() {
FastIO;
int N , M;
cin >> N;
comb[0][0] = inv[0] = fact[0] = 1;
for (int i = 1; i < 888; i++) {
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |