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