# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
16797 | kdh9949 | 제곱근 구하기 1 (gs13068_sqrt1) | C++98 | 0 ms | 1084 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>
long long n,k,s;
int main()
{
scanf("%lld",&n);
for(k=1;k*k<=n;k++);k--;
for(;k*k+s<n;s++);
printf("%.6f",(double)k+(double)s/(2*k+1));
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |