acmsguru |
---|
Finished |
K1:K2:...:KN, where K1 corresponds to the side between 1st and 2nd vertices, K2 — between 2nd and 3rd vertices, etc, KN — between Nth and 1st vertices. Each Ki is an integer, 1 ≤ Ki ≤ 100.
sample input | sample output |
3 0 0 10 0 0 10 4:2:4 | 3 0 0 10 0 4 4 3 10 0 0 10 4 4 3 0 10 0 0 4 4 |
sample input | sample output |
4 0 0 0 30 100 30 100 0 1:3:1:3 | 3 0 0 0 30 25.0 15.0 4 0 30 100 30 75.0 15.0 25.0 15.0 3 100 30 100 0 75.0 15.0 4 0 0 100 0 75.0 15.0 25.0 15.0 |
Name |
---|