# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
391540 | phathnv | Skandi (COCI20_skandi) | C++11 | 3513 ms | 31268 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 mp make_pair
#define X first
#define Y second
#define taskname "SKANDI"
using namespace std;
typedef long long ll;
typedef pair <int, int> ii;
struct _network{
static const int N = 600010;
int h[N], vst[N], Time;
vector <int> adj[N];
int nE, neg[N], nxt[N], f[N], c[N];
int cnt = 0;
void addEdge(int u, int v, int cap){
adj[u].push_back(++nE);
c[nE] = cap;
nxt[nE] = v;
adj[v].push_back(++nE);
c[nE] = 0;
nxt[nE] = u;
neg[nE] = nE - 1;
neg[nE - 1] = nE;
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |