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

Show all messages Hide all messages

1)
3
2
1
2

2)
614
13
627
861
527
911
751
658
568
846
998
188
923
426
685

3)
1560
19
580
594
644
62
963
718
291
532
293
77
356
984
384
182
986
915
18
671
920

4)
555
27
816
170
523
595
471
313
970
877
465
50
819
517
721
143
394
872
905
462
346
639
193
902
945
927
133
401
410

5)
800
  15
  10
  20
  30
  40
  50
  60
  70
  80
  90
  100
  110
  120
  130
  200
  350

6)
1458
17
802
204
451
575
158
168
247
15
50
100
1000
257
354
125
358
125
268

Thanks.

Edited by author 22.06.2006 19:08

Edited by author 23.06.2006 12:20
My answer:
    1.  -1
    2.  1 2 3 4 5 6 7 8 9 11 13
    3.  2 3 4 5 6 8 9 10 11 12 13 14 15 16 19
    4.  0
At me now wrong answer 12.

Give me tests. I used DP, but I have found a mistake{an error} at a conclusion-1.
Can give me what that ideas!


Help!!!    Thanks
1)0
2)1 2 3 4 5 6 7 8 9 11 13
3)-1
4)0
5)-1
6)-1
Thank U, man!!! AC now. Alexey 23 Jun 2006 19:40
It really helps me
Your test#1 doesn't match the description that "It's guaranteed that the total weight of all cards in the complete pack is strictly greater than the weight of the incomplete pack."
one more useful test: BORODA 23 Jan 2014 21:29
10
5
5 1 2 3 11