ICPC 2020 vòng Regional - K: Kingdom of Hamsters

View as PDF

Submit solution

Points: 1.60
Time limit: 3.29s
Memory limit: 512M
Input: stdin
Output: stdout

Problem source:
ICPC 2020 vòng Regional
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

Please read the guidelines before commenting.



  • -4
    yanwe111  commented on March 30, 2023, 6:47 a.m.

    uoc duoc vote down