Submission #27237

#TimeUsernameProblemLanguageResultExecution timeMemory
27237TAMREF제곱근 구하기 1 (gs13068_sqrt1)C++11
1 / 1
0 ms1128 KiB
#include <stdio.h> #include <math.h> int main(){ long long n; scanf("%lld",&n); long long a=(int)sqrt(n); printf("%.6f\n",a+(double)(n-a*a)/(2*a+1)); }

Compilation message (stderr)

sqrt1.cpp: In function 'int main()':
sqrt1.cpp:5:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%lld",&n);
                   ^
#Verdict Execution timeMemoryGrader output
Fetching results...