제출 #1235694

#제출 시각아이디문제언어결과실행 시간메모리
1235694marizaThousands Islands (IOI22_islands)C++20
1.75 / 100
18 ms5192 KiB
#include "islands.h" #include <bits/stdc++.h> using namespace std; typedef long long ll; variant<bool, vector<int>> find_journey(int n, int m, vector<int> u, vector<int> v) { vector<ll> g[n]; for(ll i=0; i<m; i++){ g[u[i]].push_back(v[i]); } if(g[0].size()==0) return false; else if(g[0].size()>=2) return true; else if(g[g[0][0]].size()==1) return false; else return true; }
#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...