# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1225587 | tamzid | Finding Routers (IOI20_routers) | C++20 | 0 ms | 0 KiB |
#include <bits/stdc++.h>
#include "routers.h"
using namespace 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;
vector<int> ans;
ans.pb(0);
for(int i=l;i<=2;i--)
{
if(use_detector(i) == 1)
{
ans.pb(i);
break;
}
}
return ans;
}