제출 #1240840

#제출 시각아이디문제언어결과실행 시간메모리
1240840nikulid수천개의 섬 (IOI22_islands)C++20
0 / 100
1 ms328 KiB
#include "islands.h" #include <variant> #include <vector> using namespace std; #define pb push_back variant<bool, vector<int>> find_journey(int N, int M, vector<int> U, vector<int> V) { if(N==2){ // subtask 1 vector<int> bthere, bback; for(int i=0; i<M; i++){ if(U[i]==0 && V[i]==1){ bthere.pb(i); } else{ bback.pb(i); } } if(bthere.size()>1 && bback.size()>1){ vector<int> answer = {bthere[0], bback[0], bthere[1], bback[1], bback[0], bthere[0], bback[1], bthere[1]}; return answer; } else{ return false; } } 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...