제출 #1037610

#제출 시각아이디문제언어결과실행 시간메모리
1037610thinknoexit수천개의 섬 (IOI22_islands)C++17
5 / 100
19 ms4700 KiB
#include "islands.h" #include <bits/stdc++.h> using namespace std; using ll = long long; vector<int> boat[2]; variant<bool, vector<int>> find_journey(int N, int M, vector<int> U, vector<int> V) { for (int i = 0;i < M;i++) boat[U[i]].push_back(i); if ((int)boat[0].size() < 2 || (int)boat[1].size() < 1) return false; vector<int> ans = { boat[0][0], boat[1][0], boat[0][1], boat[0][0], boat[1][0], boat[0][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...