제출 #385639

#제출 시각아이디문제언어결과실행 시간메모리
385639taulantFinding Routers (IOI20_routers)C++17
70.13 / 100
3 ms512 KiB
#include<bits/stdc++.h> using namespace std; int use_detector(int); vector<int> find_routers(int l, int n, int q){ vector<int> ret(n); // ret[0] = 0 for(int i = 1; i < n; ++i){ int lo = ret[i-1], hi = l; while(lo < hi){ int mid = (lo + hi + 1) / 2; int x = use_detector(mid); if(x < i) lo = mid; else hi = mid - 1; } ret[i] = lo + lo - ret[i-1]; } return ret; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...