# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
760088 | jk410 | Bulb Game (FXCUP4_bulb) | C++17 | 77 ms | 34764 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 "bulb.h"
using namespace std;
bool flag = false;
int n;
vector<int> l, r;
vector<int> ans;
void update(int lx, int rx, int v) {
ans[lx] += v;
ans[rx + 1] -= v;
}
int dfs(int cur, int f, int s, int cnt) {
if (cur == -1)
return 0;
if (cur == -2) {
if (f == -1) {
flag = true;
return 0;
}
else if (s == -1) {
if (cnt == n)
return 0;
update(0, n - 1, 1);
update(f, f, 1);
return 1;
}
update(f, f, 1);
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |