Submission #105617

#TimeUsernameProblemLanguageResultExecution timeMemory
105617thiago4532Cop and Robber (BOI14_coprobber)C++17
0 / 100
222 ms262144 KiB
#include <bits/stdc++.h> #define MAX_N 500 using namespace std; vector<int> grafo[MAX_N]; int dist[MAX_N], pai[MAX_N]; void dfs(int u, int p=0) { pai[u] = p; for(auto v : grafo[u]) { if(v == p) continue; dist[v] = dist[u] + 1; dfs(v, u); } } int start(int N, bool A[MAX_N][MAX_N]) { for(int i=0;i<N;i++){ for(int j=0;j<N;j++){ if(A[i][j]) grafo[i].push_back(j); } } dfs(0); return 0; } int nextMove(int R) { return 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...