제출 #599783

#제출 시각아이디문제언어결과실행 시간메모리
599783tpiang열쇠 (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...