# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
565090 | birthdaycake | 저장 (Saveit) (IOI10_saveit) | C++17 | 272 ms | 12804 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>
#include "grader.h"
#include "encoder.h"
using namespace std;
int dis[1001][37];
vector<int>adj[1001];
void reset(int n, int h){
for(int i = 0; i < n; i++){
adj[i].clear();
for(int j = 0; j < h; j++) dis[i][j] = INT_MAX;
}
}
void encode(int n, int h, int p, int a[], int b[]){
reset(n,h);
for(int i = 0; i < p; i++){
adj[a[i]].push_back(b[i]);
adj[b[i]].push_back(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... |