# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
26469 | zscoder | Three Friends (BOI14_friends) | C++14 | 356 ms | 20908 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>
using namespace std;
#define fi first
#define se second
#define mp make_pair
#define pb push_back
typedef long long ll;
typedef pair<int,int> ii;
typedef vector<int> vi;
typedef long double ld;
const int INF = 1e9 + 7;
const int MOD = 1e9 + 9;
const int C = 2017;
ll modpow(ll a, ll b)
{
if(b<0) b+=(MOD-1);
ll r= 1;
while(b)
{
if(b&1) r = (r*a)%MOD;
a=(a*a)%MOD;
b>>=1;
}
return r;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |