Page 1 of 1

Re: 12296 - Pieces and Discs

Posted: Sat Feb 28, 2015 7:09 am
by morris821028
Some I/O

Code: Select all

2 2 10 10
0 4 10 4
4 0 4 10
2 4 2
4 4 1

2 1 10 10
0 0 10 10
10 0 0 10
1 1 1

4 2 10 10
0 4 10 4
1 0 7 10
5 10 10 1
2 10 6 0
3 7 3
5 5 5

3 3 10 10
0 4 10 4
1 0 7 10
5 10 10 1
6 3 2
5 4 1
7 2 2

3 3 10 10
0 4 10 4
1 0 7 10
4 10 10 1
6 3 2
5 4 1
7 2 2

1 1 10 10
0 0 10 0
5 5 5

3 2 10 10
0 4 10 4
2 10 10 2
0 2 8 10
5 4 3
4 5 1

4 1 10 10
0 3 10 7
0 7 10 3
3 10 7 0
3 0 7 10
5 2 1

0 0 0 0 
Accepted Output

Code: Select all

2 16.00 24.00
4 16.00 24.00 24.00 36.00

2 25.00 25.00

4 0.50 10.03 10.77 18.70
10 0.50 1.73 2.50 8.80 10.03 10.77 12.00 16.70 18.27 18.70

2 10.53 28.70
2 10.53 28.70
1 28.70

2 8.35 28.20
2 8.35 28.20
2 3.00 28.20

1 100.00

4 9.00 21.00 21.00 36.00
2 9.00 21.00

1 10.00