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