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