Submission #839354

#TimeUsernameProblemLanguageResultExecution timeMemory
839354amunduzbaevThousands Islands (IOI22_islands)C++17
3.50 / 100
25 ms4300 KiB
#include "islands.h" #include "bits/stdc++.h" using namespace std; #define ar array typedef long long ll; //~ #defint int ll variant<bool, vector<int>> find_journey(int n, int m, vector<int> u, vector<int> v) { if(n == 2){ ar<int, 2> cc {}; for(int i=0;i<m;i++){ cc[u[i]]++; } if(cc[0] >= 2 && cc[1] >= 1){ //~ cout<<"here"<<endl; return (vector<int>){0}; } else { return false; } } return (vector<int>){0}; }
#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...