Submission #827794

#TimeUsernameProblemLanguageResultExecution timeMemory
827794SupersonicKeys (IOI21_keys)C++17
0 / 100
1 ms212 KiB
#include <vector> #include <bits/stdc++.h> using namespace std; std::vector<int> find_reachable(std::vector<int> r, std::vector<int> u, std::vector<int> v, std::vector<int> c) { int n=r.size(); vector<int> ans(n); bool f=0; for(int i=0;i<n;i++){ ans[i]=0; if(r[i]!=0){f=1;ans[i]=1;} } if(f==0)for(int i=0;i<n;i++)ans[i]=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...