제출 #1069891

#제출 시각아이디문제언어결과실행 시간메모리
1069891Unforgettablepl수천개의 섬 (IOI22_islands)C++17
3.50 / 100
20 ms4440 KiB
#include "islands.h" #include <bits/stdc++.h> using namespace std; variant<bool, vector<int>> find_journey(int N,int M,vector<int> U,vector<int> V){ vector<int> ans(3,-1); for(int i=0;i<M;i++) { if(U[i]==0)ans[0]=i; if(U[i]==1)ans[1]=i; } for(int i=M-1;i>=0;i--) { if(U[i]==0)ans[2]=i; } if(ans[1]!=-1 and ans[0]!=ans[2])return ans; 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...