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 1354. Palindrome. Again Palindrome

For everyone who get WA$4 and WA#8
Posted by Ayhan Aliyev [BOTL] 1 Feb 2006 23:04
These tests helped me very much. I hope it will help you.

2101221012 and answer is 210122101221012 (in test#4)
122212221 answer is 1222122212221 (in test#8)
Re: For everyone who get WA$4 and WA#8
Posted by ₦Å_̅Ϊ_̅ύ®@₤ 29 Nov 2007 00:02
Thanks, I found mistake and got AC. top push!


Edited by author 29.11.2007 00:07
Re: For everyone who get WA$4 and WA#8
Posted by TESTER 20 Jan 2009 06:53
I think you should use this sample aaaaaa answer aaaaaaa
Re: For everyone who get WA$4 and WA#8
Thanks ! I have AC ! Thank you very much for your suggest !
My AC code :
#include "iostream.h"
#include "string.h"

char s[20000]={"AbabaAab"};

int equal(int index1,int index2) {...}

int main()
{
    int a,b;
    cin.getline(s,10002);
    int l = strlen(s);
    for(a=1;a<l;a++) if(equal(a,l-1)) break;
    for(b=1;b<=a;b++) s[l+b-1]=s[a-b];
    s[l+b-1]=0;
    cout<<s;
    return 0;
}
Re: For everyone who get WA$4 and WA#8
Posted by FiRSt 1 Feb 2011 19:45
for 122212221 i have correct answer, but WA#8, what the problem?
Re: For everyone who get WA$4 and WA#8
Posted by BloodKnights 15 Jul 2011 01:05
This is weird. It tells me WA#4 but in my PC I get the right 210122101221012. Has the test changed?