| # | Time | Username | Problem | Language | Result | Execution time | Memory | 
|---|---|---|---|---|---|---|---|
| 1251900 | tamzid | Finding Routers (IOI20_routers) | C++20 | 0 ms | 0 KiB | 
#include "routers.h"
#include <bits/stdc++.h>
using namespace std;
std::vector<int> find_routers(int l, int n, int q) {
  //   int idx = use_detector(0);
  //   std::vector<int> ans;
  //   for (int i = 0; i < n; i++) {
	// 	ans.push_back(0);
	// }
	// return ans;
  std::vector<int> ans;
  ans.push_back(0);
  int l = 0, r = l;
  while(l < r)
  {
    int m = (l + r) / 2;
    if(use_detector(m) == 0)
    {
      l = m + 1;
    }
    else
    {
      r = m - 1;
    }
  }
  ans.push_back((l - 1) * 2);
  return ans;
}
