Submission #517064

# Submission time Handle Problem Language Result Execution time Memory
517064 2022-01-22T13:12:37 Z Ai7081 Stations (IOI20_stations) C++17
0 / 100
3000 ms 620 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+1);
    return ret;
}

int find_next_station(int s, int t, vector<int> c) {
    //s++, t++;
    if (t < s) return s/2;
    int p = 0;
    while (t != s) {
        p = t;
        t /= 2;
    }
    return p;
}
# Verdict Execution time Memory Grader output
1 Execution timed out 3038 ms 492 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 3031 ms 488 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 3042 ms 400 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 836 ms 400 KB Output is correct
2 Execution timed out 3036 ms 620 KB Time limit exceeded
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 3049 ms 488 KB Time limit exceeded
2 Halted 0 ms 0 KB -