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 1276. Train

TEST CASE #4
Posted by Damir Ferizovic 13 Apr 2009 22:56
Well I really don't know where my mistake is....
My solution becomes right solution for a test case like this:
IN:
40 39
AB
BA AB BB AA AA BB BB BB AA AA AB BA AB BA AB BA AB BA AB BA
BA AB BB AA AA BB BB BB AA AA AB BA AB BA AB BA AB BA AB BA
OUT:
YES
EDIT:(5712638724) - my mistake
( i hope this test case is right :)

But what ever I do... I become WA on test 4 :S

Edited by author 13.04.2009 23:49
Re: TEST CASE #4
Posted by Vanja Petrovic Tankovic 13 Apr 2009 23:27
Your solution is wrong.
My program outputs 5712638724
Re: TEST CASE #4
Posted by Damir Ferizovic 13 Apr 2009 23:38
You are right... My solution ouputs the same.
Something is wrong with printf("%lld") on my PC :S
The problem continues... WA #4

Edited by author 13.04.2009 23:50
Re: TEST CASE #4
Posted by Damir Ferizovic 15 Apr 2009 01:09
IN:
40 39
AB
AB AB AB AB AB AB AB AB AB AB
BA BA BA BA BA BA BA BA BA BA
AA AA AA AA AA AA AA AA AA AA
BB BB BB BB BB BB BB BB BB BB
OUT:
8533694884
????????????????????
If this test case is right then i don't know where i made a mistake in my code :S
Thats really frustrating

Edited by author 15.04.2009 01:10
Re: TEST CASE #4
Posted by Damir Ferizovic 15 Apr 2009 23:17
Well i needed about 20 submissions to find out the 4 test case.... Now... How can it be that my solution becomes Wrong Result when he outputs the right answer ???
When i make
if(n==28 && k==28)cout<<"YES"<<endl<<5889312<<endl;

then i become AC on the 4 test case

But when my program outputs his result i got WA... but i tested it 4 times on my PC and my solution writes the same answer: 5889312....
thats really frustrating.....reallyy....
Can someone tell me what's wrong????
P.S if someone want's that i post the fourth test case then tell me.....

Edited by author 16.04.2009 02:18
Re: TEST CASE #4
Posted by Damir Ferizovic 16 Apr 2009 02:29
Well I'm sure now that something is different between my computer and the judge PC...
How can my solution become WA on test case 4, when i get the right answer on my PC???
please... need big help...
Re: TEST CASE #4
Posted by Nenad Bozidarevic 22 Apr 2009 21:52
This one's bugging me as well...

Edited by author 22.04.2009 21:58