# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
62159 | reality | 저장 (Saveit) (IOI10_saveit) | C++17 | 348 ms | 11640 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#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... |