#include <bits/stdc++.h>
using namespace std;
#include "stations.h"
#include <vector>
const int N = 1001;
vector<int> adj[N];
std::vector<int> label(int n, int k, std::vector<int> u, std::vector<int> v) {
for (int i=0; i<n; i++) adj[i].clear();
std::vector<int> labels(n);
for (int i=0; i<n-1; i++) {
adj[u[i]].push_back(v[i]);
adj[v[i]].push_back(u[i]);
}
for (int i=0; i<n; i++) labels[i] = i;
return labels;
}
int find_next_station(int s, int t, std::vector<int> c) {
if (s>t) return s/2;
while (t/2 > s) t/=2;
if (t/2 == s) return t;
return s/2;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
371 ms |
684 KB |
Wrong query response. |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
295 ms |
684 KB |
Wrong query response. |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
361 ms |
684 KB |
Wrong query response. |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
634 ms |
684 KB |
Output is correct |
2 |
Incorrect |
411 ms |
684 KB |
Wrong query response. |
3 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
359 ms |
684 KB |
Wrong query response. |
2 |
Halted |
0 ms |
0 KB |
- |