Submission #432765

# Submission time Handle Problem Language Result Execution time Memory
432765 2021-06-18T13:12:59 Z A_D Stations (IOI20_stations) C++14
0 / 100
858 ms 500 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){
//        cout<<x<<" ";
        mn=min(mn,x);
        mx=max(mx,x);
    }
  //  cout<<endl;
    if(s<t)return mx;
    else return mn;
}
# Verdict Execution time Memory Grader output
1 Incorrect 545 ms 456 KB Wrong query response.
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 456 ms 488 KB Wrong query response.
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 558 ms 500 KB Wrong query response.
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 858 ms 488 KB Output is correct
2 Incorrect 721 ms 400 KB Wrong query response.
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 554 ms 400 KB Wrong query response.
2 Halted 0 ms 0 KB -