ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1579. Coat Transportation

Rybinsk SAAT (Samsonov, Barhonina, Mandzharov) WA #1 [2] // Problem 1579. Coat Transportation 13 Oct 2007 20:59
My program give answer on test in sample:
3
4 1 4 6 8
3 2 5 7
1 3
But i have wa #1
It's wrong?
Lomir Re: WA #1 [1] // Problem 1579. Coat Transportation 13 Oct 2007 21:25
Rybinsk SAAT (Samsonov, Barhonina, Mandzharov) wrote 13 October 2007 20:59
4 1 4 6 8
Last two numbers gives us: 13-10 = 3
The differece between sizes is 3, R is also 3.
However:
"A larger coat can be put on over a smaller one if the size of the larger coat exceeds the size of the smaller coat by more than R."
So diffrence must be at least 4.
Denis Re: WA #1 // Problem 1579. Coat Transportation 18 Oct 2007 01:17
I found my mistake... But its not enough...

Edited by author 18.10.2007 01:20

Edited by author 18.10.2007 01:20