Submission #16816

#TimeUsernameProblemLanguageResultExecution timeMemory
16816kdh9949제곱근 구하기 2 (gs13068_sqrt2)C++98
1 / 1
0 ms1084 KiB
#import<cstdio> long long n,k,s;main(){scanf("%lld",&n);for(k=1;k*(k-1)<=n;k++);k--;printf("%.6f",(double)(n+k*k)/k/2);}
#Verdict Execution timeMemoryGrader output
Fetching results...