Submission #400982

#TimeUsernameProblemLanguageResultExecution timeMemory
400982jairRSFinding Routers (IOI20_routers)C++17
39 / 100
1 ms336 KiB
#include "routers.h" #define pb push_back using namespace std; std::vector<int> find_routers(int l, int n, int q) { vector<int> ans = {0}; int lo = 0, hi = l; while(lo <= hi){ int mid = (lo + hi)/2; int detected = use_detector(mid); if(detected > 0) hi = mid - 1; else lo = mid + 1; } ans.pb((lo - 1)*2); 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...