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 1244. Gentlemen

I used to get WA on #14..after i fixed this problem i got AC
Posted by The Big Bad Wolf (Cristina Stancu-Mara) 16 Mar 2005 15:34
Check those 2 particular cases:
0
3
2
3
5
the answer shoud be 1 2 3 [even if u can find sum 5 in 2 ways (2,3)and(5)]
and
5
4
2
3
4
5
the answer shoud be -1 because u can find sum 5 in 2 ways, and also sum 9 in 2 ways.

Edited by author 17.03.2005 13:18