제출 #797633

#제출 시각아이디문제언어결과실행 시간메모리
797633HunterXD수천개의 섬 (IOI22_islands)C++17
0 / 100
1 ms340 KiB
#include <bits/stdc++.h> using namespace std; #define ll int typedef vector<ll> vl; typedef vector<vl> vll; #define pb push_back #define nd '\n'; variant<bool, vl> find_journey(ll n, ll m, vl u, vl v) { vl ans; if (n == 2) { vl grid[n][n]; for (ll i = 0; i < m; i++) { grid[u[i]][v[i]].pb(i); } if (grid[0][1].size() >= 2 && grid[1][0].size() >= 1) { ans.pb(grid[0][1][0]); ans.pb(grid[1][0][0]); ans.pb(grid[0][1][1]); ans.pb(grid[0][1][0]); ans.pb(grid[1][0][0]); ans.pb(grid[0][1][1]); } 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...