제출 #627274

#제출 시각아이디문제언어결과실행 시간메모리
627274model_code수천개의 섬 (IOI22_islands)C++17
5 / 100
39 ms4416 KiB
// incorrect/solution-ayaze-n-equals-two.cpp #include "islands.h" #include <bits/stdc++.h> using namespace std; std::variant<bool, std::vector<int>> find_journey( int N, int M, std::vector<int> U, std::vector<int> V) { vector<vector<int>> out(N), in(N); for (int i = 0 ; i < M ; i++) { if (U[i] == 0) out[V[i]].push_back(i); if (V[i] == 0) in[U[i]].push_back(i); } for (int i = 0 ; i < N ; i++) { if (static_cast<int>(out[i].size()) >= 2 && static_cast<int>(in[i].size()) >= 1) { vector<int> ret = { out[i][0], in[i][0], out[i][1], out[i][0], in[i][0], out[i][1] }; return ret; } } return false; }
#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...