Submission #517057

# Submission time Handle Problem Language Result Execution time Memory
517057 2022-01-22T13:00:24 Z Ai7081 Stations (IOI20_stations) C++17
0 / 100
696 ms 672 KB
#include <bits/stdc++.h>
using namespace std;
const int N = 1005;


vector<int> label(int n, int k, vector<int> u, vector<int> v) {
    vector<int> ret;
    for (int i=0; i<n; i++) ret.push_back(i);
    return ret;
}

int find_next_station(int s, int t, vector<int> c) {
    s++, t++;
    if (t < s) return s/2 - 1;
    int p = 0;
    while (t > s) {
        p = t;
        t /= 2;
    }
    return p - 1;
}
# Verdict Execution time Memory Grader output
1 Incorrect 569 ms 672 KB Wrong query response.
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 506 ms 488 KB Wrong query response.
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 499 ms 552 KB Wrong query response.
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 673 ms 400 KB Output is correct
2 Incorrect 696 ms 400 KB Wrong query response.
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 474 ms 492 KB Wrong query response.
2 Halted 0 ms 0 KB -