# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
254794 | model_code | Village (BOI20_village) | Java | 450 ms | 33804 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.
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.io.StreamTokenizer;
public class Village {
static int masa[] = new int[100000];
static int masb[] = new int[100000];
static int degree[] = new int[100001];
static long neighboursum[] = new long[100001];
static int rinda[] = new int[100000];
static int subtree[] = new int[100001];
static int place[] = new int[100001];
static int fatchild[] = new int[100001];
static int order[] = new int[100000];
static int place2[] = new int[100001];
static int group[] = new int[100002];
static int groupSize[] = new int[100002];
static int counters[] = new int[100002];
static int n;
static int min(int a, int b) {
if (a < b) {
return a;
} else {
return b;
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |