# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1118381 | Aviansh | Square or Rectangle? (NOI19_squarerect) | C++17 | 2 ms | 336 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 "squarerect.h"
#include <bits/stdc++.h>
using namespace std;
bool sq(int i, int j){
int lo = 1;
int hi = i;
while(lo<hi){
int mid = (lo+hi)/2;
if(inside_shape(mid,j)){
hi=mid;
}
else{
lo=mid+1;
}
}
int lim1 = lo;
lo=i+1;
hi=100;
while(lo<hi){
int mid = (lo+hi+1)/2;
if(inside_shape(mid,j)){
lo=mid;
}
else{
hi=mid-1;
}
}
int lim2 = lo;
// j is constant till here now i will be constant for similar
# | 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... |