# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1201615 | hihihah | Finding Routers (IOI20_routers) | C++20 | 0 ms | 328 KiB |
#include "routers.h"
#include <bits/stdc++.h>
#define ll long long
#define pii pair <int, int>
#define all(x) x.begin(),x.end()
using namespace std;
vector <int> find_routers (int l, int n, int q) {
if (n == 2) {
vector <int> pos;
pos.push_back (0);
int L = 0, R = l;
int ans = 0;
while (L <= R) {
int mid = L + R >> 1;
if (use_detector (mid) == 0) {
ans = mid;
L = mid + 1;
}
else R = mid - 1;
}
pos.push_back (ans * 2);
return pos;
}
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |