ALETHIO - Editorial

burrrh… I tested all the corner cases I could guess… hard luck bro…

1 Like

i saw them…all were giving correct ans…thanks for trying :slight_smile:

@prad_adm…pls give cases that my code is failing to give correct ans…!!!

thanks kunal361 … i didn’t tried for no input ant inputs having all 0’s… got it correct… sad that i wasn’t able to figure this out while contest was running.

i m not getting ne case for which my code fails…still getting WA…:frowning:

will you please explain your approach in short… thanks in advance.

Sorry for the long String…:stuck_out_tongue:

what matters is whether it was in the test case!

No but my question is that an algorithm has to be generic and valid for all kinds of test cases.What the test cases are is an altogether different thing.

i m getting 7028544864737656560892…and apparently it is correct…but still m not getting AC…:frowning:

both have the same digits and so logically yours is right @dush22

Try this : 0A000B99

3 Likes

Your atoi() cannot handle digits with a length of 1000.
Find some other mechanism for comparison.

thanks a lot…!!!

string can do it?

In C/C++ I guess thats the only way to do it.
Java provides you with BigInteger.
And python is the king in such cases…

1 Like

@malaykeshav finally got AC…thanks a ton dude!!!

7028544864737656560892 i’m also getting it’s correct but getting TLE in python code :frowning:

i’m also getting 7028544864737656560892 but it shows wa

try 0 or 000 there is no output!!!

see this link acvoy8 - Online C++ Compiler & Debugging Tool - Ideone.com

1 Like

Ohhh…I added the wrong link. I’ve changed that. And corrected for the above cases as well…Still not working.
And Now the code is less generic and more of test case driven…:-/