# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
12248 | pro0331 | 전선 연결하기 (GA9_wire) | C++98 | 0 ms | 5776 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 <stdio.h>
int n;
int a[600000];
int st[600000];
char check(int s)
{
int t = a[s];
int hi_open = 0;
int lo_open = 0;
bool high = true, low = true;
int i;
for (i = s+1; a[i] != t; i++) {
switch (st[i]) {
case 1:
hi_open++;
break;
case 2:
if (--hi_open < 0) {
high = false;
if (low == false)
return 0;
}
break;
case 3:
lo_open++;
break;
case 4:
if (--lo_open < 0) {
# | 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... |