Submission #4783

#TimeUsernameProblemLanguageResultExecution timeMemory
4783gs13068제곱근 구하기 1 (gs13068_sqrt1)C++98
1 / 1
0 ms1088 KiB
#include<cstdio> int main() { long long i,n; scanf("%lld",&n); for(i=1;i*i<=n;i++); printf("%lld.%06lld",i-1,((n-(i-1)*(i-1))*1000000+(i*i-(i-1)*(i-1))/2)/(i*i-(i-1)*(i-1))); }
#Verdict Execution timeMemoryGrader output
Fetching results...