# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
678194 | vjudge1 | Stove (JOI18_stove) | C++17 | 27 ms | 2192 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
#define pb push_back
#define pf push_front
#define ppb pop_back
#define ppf pop_front
#define ll long long
#define ull unsigned long long
#define len(x) (int)x.size()
#define all(x) (x).begin(), (x).end()
#define F first
#define S second
using namespace std;
const ll MOD = 1e9 + 7;
ll power (ll a, ll b) {
ll result = 1;
for (int i = 1; i <= b; i++) result *= a;
return result;
}
ll binpow(ll a, ll b) {
if (b == 0) return 1;
if (b % 2 == 1) return binpow(a, b - 1) * a;
else return binpow(a, b / 2) * binpow(a, b / 2);
}
ll fact(int x) {
ll result = 1;
for (int i = 2; i <= x; i++) result *= i;
return result;
}
ll comb(int n, int k) {
return fact(n) / fact(k) / fact(n - k);
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |