LUBEN - Lubenica

no tags 


hide comments
nadstratosfer: 2021-07-01 02:29:16

This one belongs to a small genre of problems a child armed with curiosity and some fluency in coding can solve. I can think of 4-5 problems based on similar concept here on SPOJ and I've enjoyed every one of them.

:D: 2010-07-27 08:16:55

I had a smillar problem (ok on official data)and it turned it was a WA on a border case (the input limits in the description are valid, the border case was triggered by the solution logic). Please check your code on some simple test data.

~ adieus ~: 2010-07-27 08:16:50

uff, same problem ,working fine with the COCI test cases , WA :x

did some 90+ odd submissions to find out the mistake..

i replaced if(x) with if(x==1) where x belongs to {0,1} , it starts working fine ... :P

Last edit: 2009-09-16 10:30:53
Josef Ziegler: 2009-07-01 22:27:36

@ Srivatisan B
No, SPOJ's test data does not need to be the same as the one in COCI.

Last edit: 2009-07-01 22:27:56
Srivatsan B: 2009-06-06 04:30:10

My code is giving right answers to all 10 official test cases, but WAs when submitted... Is anything wrong with the judging...


Added by:Race with time
Date:2009-02-08
Time limit:0.202s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All except: ERL JS-RHINO NODEJS PERL6 VB.NET
Resource:COCI 2008/2009 - Contest #5, 7th February 2009