# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
16735 | suhgyuho_william | 수족관 1 (KOI13_aqua1) | C++98 | 9 ms | 3720 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 <stdio.h>
#include <algorithm>
using namespace std;
int n;
int x[300002],y[300002];
bool check[300002];
long long leftwater;
double wtime;
int find_edge(int sx,int sy){
int left,mid,right;
left = 1;
right = (n-2)/2;
while(true){
mid = (left+right)/2;
if(sx == x[mid*2] && sy == y[mid*2]) break;
if(sx < x[mid*2]) right = mid-1;
else if(x[mid*2] < sx) left = mid+1;
else{
if(x[(mid-1)*2] == sx) return (mid-1)*2;
else return (mid+1)*2;
}
}
return mid*2;
}
double dfs(int s,int e,int hole){
int i;
# | 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... |