Submission #1024284

#TimeUsernameProblemLanguageResultExecution timeMemory
1024284Ahmed_SolymanStations (IOI20_stations)C++14
0 / 100
3033 ms2097152 KiB
#include <stations.h> #include <bits/stdc++.h> using namespace std; typedef long long ll; const int N=2005; vector<int>adj[N]; int l[N],r[N],mark=0; void dfs(int node,int par){ for(auto i:adj[node]) if(i!=par)dfs(i,node); } vector<int> label(int n, int k, vector<int> u, vector<int> v){ for(int i=0;i<n-1;i++){ adj[u[i]].push_back(v[i]); adj[v[i]].push_back(u[i]); } dfs(0,0); vector<int>ret; for(int i=0;i<n;i++)ret.push_back(i); return ret; } bool is_anc(int u,int v){ v/=1000; int in=u/1000,out=u%1000; if(v>=in && v<=out)return 1; else return 0; } int find_next_station(int s, int t,vector<int> c){ int root=0; return root; }
#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...