Submission #599783

#TimeUsernameProblemLanguageResultExecution timeMemory
599783tpiangKeys (IOI21_keys)C++17
0 / 100
1 ms300 KiB
#include <bits/stdc++.h> using namespace std; vector<int> find_reachable(vector<int> r, vector<int> u, vector<int> v, vector<int> c) { int n = (int)r.size(); vector<int> ans(n, 0); bool flag = false; for(int i = 0; i < n; i++){ if(r[i] != 0){ ans[i] = 1; flag = true; } } if(!flag){ ans.assign(n,1); } return ans; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...