Submission #16797

#TimeUsernameProblemLanguageResultExecution timeMemory
16797kdh9949제곱근 구하기 1 (gs13068_sqrt1)C++98
1 / 1
0 ms1084 KiB
#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 timeMemoryGrader output
Fetching results...