Submission #1069891

#TimeUsernameProblemLanguageResultExecution timeMemory
1069891UnforgettableplThousands Islands (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...