Submission #16798

#TimeUsernameProblemLanguageResultExecution timeMemory
16798kdh9949제곱근 구하기 2 (gs13068_sqrt2)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-1)<=n;k++);k--;k*=2; printf("%.6f",(double)(n+k*k/4)/k); }
#Verdict Execution timeMemoryGrader output
Fetching results...