Submission #1054707

#TimeUsernameProblemLanguageResultExecution timeMemory
1054707LittleOrangeStations (IOI20_stations)C++17
8 / 100
482 ms936 KiB
#include "stations.h" #include <vector> #include<bits/stdc++.h> using namespace std; using ll = int; std::vector<int> label(int n, int k, std::vector<int> u, std::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, std::vector<int> c) { s++;t++; ll lgs = __lg(s), lgt = __lg(t); if (lgs<lgt){ ll x = t>>(lgt-lgs); if (s==x){ return (t>>(lgt-lgs-1))-1; } } return (s>>1)-1; }
#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...