# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
7598 | jihoon | 제곱근 구하기 1 (gs13068_sqrt1) | C++98 | 0 ms | 1088 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<cstdio>
long long int nn;
long double prev,nw;
int main(){
scanf("%lld",&nn);
nw=10000.0;
while(prev!=nw){
prev=nw;
nw+=(nn/nw);
nw/=2;
}
printf("%.6lf",prev);
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |