Submission #403132

#TimeUsernameProblemLanguageResultExecution timeMemory
403132AmineTrabelsiStations (IOI20_stations)C++14
0 / 100
919 ms492 KiB
#include "stations.h" #include <bits/stdc++.h> using namespace std; vector<int> label(int n, int k, vector<int> u, vector<int> v) { std::vector<int> labels(n); for (int i = 0; i < n; i++) { labels[i] = i; } return labels; } int find_next_station(int s, int t, vector<int> c) { int ans = -1; if(t > s){ for(auto i:c){ ans = max(ans,i); } }else{ ans = 1e9+7; for(auto i:c){ ans = min(ans,i); } } return ans; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...