TopCoder

$\huge 南ことり$
$ε=ε=ε=(~ ̄▽ ̄)~烙跑囉$

User's AC Ratio

86.5% (64/74)

Submission's AC Ratio

35.1% (105/299)

Tags

Description

給你一個正整數,求其平方根到小數點後50位,列印出結果。

注意,請不要使用sqrt()等函式,這些函式的精準度並沒有達到50位數。

Input Format

一個正整數n。(1<=n<=100,000)

Output Format

其平方根至小數點後50位,最末位四捨五入

Sample Input 1

3

Sample Output 1

1.73205080756887729352744634150587236694280525381038

Hints

Problem Source

原TIOJ1027 / 96建中校內資訊能力競賽(prob4)

Subtasks

No. Testdata Range Score
1 0 10
2 1 10
3 2 10
4 3 10
5 4 10
6 5 10
7 6 10
8 7 10
9 8 10
10 9 10

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 5000 65536 262144 1
1 5000 65536 262144 2
2 5000 65536 262144 3
3 5000 65536 262144 4
4 5000 65536 262144 5
5 5000 65536 262144 6
6 5000 65536 262144 7
7 5000 65536 262144 8
8 5000 65536 262144 9
9 5000 65536 262144 10