Submit solution
Points:
1.10
Time limit:
2.5s
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
3
HN LA
QT HN
SG PY
5
LCK LPL
LEC LPL
LCS LCK
LCK VCS
LPL LCK
4
GBR FRA
GER ESP
SUI POR
ITA HUN
0
Sample Output 1
0.00000000 0.00000000 1.00000000
1.00000000 0.00000000 0.00000000
0.00000000 1.00000000 0.00000000
0.00000000 0.50000000 0.00000000 0.50000000 0.00000000
0.16666667 0.00000000 0.16666667 0.16666667 0.50000000
0.16666667 0.16666667 0.00000000 0.16666667 0.50000000
0.66666667 0.33333333 0.00000000 0.00000000 0.00000000
0.00000000 0.00000000 0.83333333 0.16666667 0.00000000
0.00000000 0.33333333 0.33333333 0.33333333
0.33333333 0.00000000 0.33333333 0.33333333
0.33333333 0.33333333 0.00000000 0.33333333
0.33333333 0.33333333 0.33333333 0.00000000
Comments