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

Crash_access_violation wa#12 [6] // Problem 1244. Gentlemen 15 Mar 2009 14:09
I solve this task with DP, but wa#12... Please give me some useful tests. Thanks.
Crash_access_violation wa#12 [5] // Problem 1244. Gentlemen 15 Mar 2009 14:12
to Admins!!!
2
2
1
1

result empty line or zero?
zbsGuy Re: wa#12 // Problem 1244. Gentlemen 30 Apr 2009 14:46
I've got wa#12 too :(
Partisan Re: wa#12 [3] // Problem 1244. Gentlemen 18 Jun 2009 02:49
Also have WA #12 (now).

The test above is incorrect (weight of not full set is strongly less than weight of full set of cards by condition)
Partisan Re: wa#12 [2] // Problem 1244. Gentlemen 18 Jun 2009 02:54
I lost this fragment:

if(f[i][1-page]==-1) f[i][page]=-1;

or

if(f[i][j-1]==-1) f[i][j]=-1;
zbsGuy Re: wa#12 [1] // Problem 1244. Gentlemen 4 Jul 2009 01:06
Please give me (show me) test#12. Thanks

Edited by author 04.07.2009 01:20
r1d1 Re: wa#12 // Problem 1244. Gentlemen 20 Feb 2010 16:57
12
6
1
4
3
1
2
5
answer: -1