# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
624042 | 79brue | 통행료 (IOI18_highway) | C++17 | 261 ms | 13772 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "highway.h"
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int n, m;
ll A, B;
int ex[130002], ey[130002];
vector<pair<int, int> > link[100002];
ll def;
int U, V;
void findOneEdge(){
int L = 0, R = m-2, ANS = m-1;
while(L<=R){
int MID = (L+R)/2;
vector<int> tv (m, 0);
for(int i=0; i<=MID; i++) tv[i] = 1;
if(ask(tv) != def) ANS = MID, R = MID-1;
else L = MID+1;
}
U = ex[ANS], V = ey[ANS];
}
int uDist[100002], vDist[100002];
void bfs(int st, int *dist){
queue<pair<int, int> > que;
vector<bool> vec (n);
# | 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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |