Submit solution
Points:
1.60
Time limit:
3.29s
Memory limit:
512M
Input:
stdin
Output:
stdout
Problem source:
Problem type
Allowed languages
C, C++, Go, Java, Kotlin, Pascal, PyPy, Python, Rust, Scratch
In case the statement didn't load correctly, you can download the statement here: Statement
Sample Input 1
6
1 2
1 3
2 4
3 3
3 2
2 1
Sample Output 1
7.656854249492381
7.656854249492381
7.656854249492381
7.656854249492381
7.656854249492381
7.656854249492381
Sample Input 2
8
3 1
6 1
8 3
8 6
6 8
3 8
1 6
1 3
Sample Output 2
22.42718386376139
22.42718386376139
22.42718386376139
22.42718386376139
22.42718386376139
22.42718386376139
22.42718386376139
22.42718386376139
Comments
uoc duoc vote down