MARBLES december long 2k13

can some one give a test case for which my program fails i tried many times while the contest was on. http://www.codechef.com/viewsolution/3066054

Same if someone can help pleaseā€¦
http://www.codechef.com/viewsolution/3103555

//