# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
440618 | MetalPower | Keys (IOI21_keys) | C++17 | 0 ms | 204 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>
using namespace std;
#include "keys.h"
vector<int> find_reachable(vector<int> r, vector<int> u, vector<int> v, vector<int> c){
bool all_zero = true;
int N = r.size(), M = u.size();
for(int i = 0; i < N; i++) all_zero &= (r[i] == 0);
vector<int> ans(N, 1);
if(!all_zero) for(int i = 0; i < N; i++) ans[i] &= (r[i] != 0);
return ans;
}
Compilation message (stderr)
# | 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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |