ALETHIO - Editorial

@sid_iiita - yu are using long long… yu shuld change your algo… to keep it in string… otherwise your ans will overflow… check this input…
DDDDDDDDDDD66666666666666666666666666666UYIWUYRR
yu are getting WA

wow, you got me on that! The code doesn’t handle that scenario, though it managed to get an AC :slight_smile:

@kashish55 thanxx for help :smiley:
silly of me

i think my approach was simpler than many described here ; I did’nt realise the case of leading zeros until i read this editorial … my approach was to convert contiguous numbers and look for max and in case of letters look nearby for contiguous numbers and compare the newly formed number (with the letter as number 9) with standing maximum. Python takes good care of large numbers/inputs …so yay to python!

http://www.codechef.com/viewsolution/2300014

Getting wrong answer…
Even checked all the cases described above.
Took care of leading zeroes.
Used BigInteger to achieve the length of answer.

Still can not figure it out why am i getting WA.
:frowning:
CAn any1 provide me some test cases…

2 Likes

I think this solution is much better than editorial, and this is he way we should do it…nice bodmas…

Changed my code. Now getting NZEC. Not understanding why. Please help.
http://www.codechef.com/viewsolution/2312588

I have modified your code to handle cases like C23DB34.
http://www.codechef.com/viewsolution/2312243