# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
17649 | Namnamseo | 제곱근 구하기 1 (gs13068_sqrt1) | C++14 | 0 ms | 1084 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.
#import<cstdio>
#import<cmath>
main(){
long long a,l=0,r=1000010,m;
scanf("%lld",&a);
while(l+1!=r){
m=(l+r)/2;
if(m*m<=a) l=m;
else r=m;
}
printf("%.6f",l+(a-l*l)*1.0/(r*r-l*l));
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |