# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
469320 | jason7777 | Snowball (JOI21_ho_t2) | C++14 | 137 ms | 15300 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.
#pragma GCC optmize ("O3,unroll-loops")
#include <bits/stdc++.h>
using namespace std;
#define spIO ios::sync_with_stdio(false);cin.tie(0)
#define mem(x,va) memset(x,va,sizeof(x))
#define for0(i,n) for(int i=0;i<n;i++)
#define for1(i,n) for(int i=1;i<=n;i++)
typedef long long ll;
typedef long double ld;
const ll mod = 1e9 + 7;
inline ll inv(ll x, ll MOD = mod)
{
ll power = MOD - 2, ret = 1;
while (power)
{
if (power & 1)
(ret *= x) %= MOD;
power >>= 1;
(x *= x) %= MOD;
}
return ret;
}
inline ll gcd(ll x, ll y)
{
if (y == 0) return x;
return gcd(y, x % y);
}
ll pow2(ll target, ll p)
{
ll ret = 1;
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |