# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1075917 | anton | Cop and Robber (BOI14_coprobber) | C++17 | 1 ms | 600 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "coprobber.h"
#include<bits/stdc++.h>
using namespace std;
#define pii pair<int, int>
#define P complex<int>
vector<vector<int>> adj;
bool B[MAX_N][MAX_N];
int N;
int W =0;
P cop_pos= {0, 0};
P prev_pos = {-1, -1};
int start(int _N, bool A[MAX_N][MAX_N])
{
N= _N;
adj.resize(N);
for(int i = 0; i<MAX_N; i++){
for(int j = 0; j<MAX_N; j++){
B[i][j] = A[i][j];
if(B[i][j]){
adj[i].push_back(j);
}
}
}
for(int i = N-1; i>0; i--){
if(adj[i].size() == 2){
W = i+1;
}
}
return -1;
}
int nextMove(int R)
{
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |