Submission #432754

# Submission time Handle Problem Language Result Execution time Memory
432754 2021-06-18T13:08:35 Z A_D Stations (IOI20_stations) C++14
0 / 100
923 ms 600 KB
#include "stations.h"
#include <bits/stdc++.h>
using namespace std;

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){
    int mx=0,mn=1e9;
    for(auto x:c){
        mn=min(mn,x);
        mx=max(mx,x);
    }
    if(s<t)return mx;
    else return mn;
}
# Verdict Execution time Memory Grader output
1 Incorrect 511 ms 600 KB Wrong query response.
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 490 ms 488 KB Wrong query response.
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 596 ms 516 KB Wrong query response.
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 923 ms 488 KB Output is correct
2 Incorrect 713 ms 484 KB Wrong query response.
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 583 ms 400 KB Wrong query response.
2 Halted 0 ms 0 KB -