Submission #315638

#TimeUsernameProblemLanguageResultExecution timeMemory
315638SortingStations (IOI20_stations)C++17
8 / 100
1081 ms1064 KiB
#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> 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){ while(true){ if(t <= s) return c[0]; if(t == 2 * s + 1 || t == 2 * s + 2) break; t = (t - 1) >> 1; } return t; } /* 2 5 10 0 1 0 2 1 3 1 4 1 0 4 0 2 1 0 1 1 1 0 0 */
#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...