# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
7600 | 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<stdio.h>
double nn;
double prev,nw;
int main(){
scanf("%lf",&nn);
nw=1;
while(prev!=nw){
prev=nw;
nw=nw+(nn/nw);
nw/=2.0;
}
printf("%.6lf",prev);
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |