# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
7599 | 2014-08-12T09:38:09 Z | jihoon | 제곱근 구하기 1 (gs13068_sqrt1) | C++ | 0 ms | 1088 KB |
#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 |
---|---|---|---|---|
1 | Incorrect | 0 ms | 1088 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |