# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
251483 | VEGAnn | Ili (COI17_ili) | C++14 | 637 ms | 2296 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>
#define PB push_back
using namespace std;
const int N = 20100;
vector<int> bck[N], to[N];
int n, m;
string s, t;
bool was[N];
void down(int v){
s[v] = '0';
for (int u : bck[v])
down(u);
}
bool noone(int v){
if (v >= m) return (s[v] - '0');
int res = 0;
for (int u : bck[v])
res |= noone(u);
return res;
}
void mark_all(int v){
if (v >= m) t[v] = '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... |