제출 #797608

#제출 시각아이디문제언어결과실행 시간메모리
797608HunterXD수천개의 섬 (IOI22_islands)C++17
1.75 / 100
25 ms4440 KiB
#include <bits/stdc++.h> using namespace std; #define ll int typedef vector<ll> vl; typedef vector<vl> vll; #define pb push_back 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; }
#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...