제출 #835041

#제출 시각아이디문제언어결과실행 시간메모리
835041pavement수천개의 섬 (IOI22_islands)C++17
6.75 / 100
27 ms5572 KiB
#include "islands.h" #include <bits/stdc++.h> using namespace std; #define pb push_back #define eb emplace_back using ii = pair<int, int>; variant<bool, vector<int> > find_journey(int N, int M, vector<int> U, vector<int> V) { vector<int> t1, t2; for (int i = 0; i < M; i++) { if (U[i] == 0) { t1.pb(i); } else { t2.pb(i); } } if ((int)t1.size() >= 2 && (int)t2.size() >= 1) { vector<int> ret = {t1[0], t2[0], t1[1], t1[0], t2[0], t1[1]}; return ret; } else { 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...