# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
62159 | reality | Saveit (IOI10_saveit) | C++17 | 348 ms | 11640 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 ll long long
#define dbg(v) cerr<<#v<<" = "<<v<<'\n'
#define vi vector<int>
#define vl vector <ll>
#define pii pair<int,int>
#define mp make_pair
#define db long double
#define pb push_back
#define all(s) s.begin(),s.end()
#include "grader.h"
const int N = (int)(1e4) + 5;
void encode(int nv, int nh, int ne, int *a, int *b)
{
static vi g[N];
static int D[N];
static int p[N];
int n = nv;
int nn = nh;
int m = ne;
for (int i = 1;i < n;++i)
p[i] = -1,g[i].clear();
for (int i = 0;i < m;++i)
g[a[i]].pb(b[i]),g[b[i]].pb(a[i]);
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |