Submission #4789

#TimeUsernameProblemLanguageResultExecution timeMemory
4789Qwaz제곱근 구하기 1 (gs13068_sqrt1)C++98
1 / 1
0 ms1088 KiB
#include <cstdio> typedef long long ll; ll n; void solve(){ ll i; for(i=0; i*i<n; i++); i--; printf("%lf\n", i+(double)(n-i*i)/(2*i+1)); } int main(){ scanf("%lld", &n); solve(); return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...