PALIN - The Next Palindrome
A positive integer is called a palindrome if its representation in the decimal system is the same when read from left to right and from right to left. For a given positive integer K of not more than 1000000 digits, write the value of the smallest palindrome larger than K to output. Numbers are always displayed without leading zeros.
The first line contains integer t, the number of test cases. Integers K are given in the next t lines.
For each K, output the smallest palindrome larger than K.
Warning: large Input/Output data, be careful with certain languages
|Cluster:||Cube (Intel Pentium G860 3GHz)|
|Languages:||All except: NODEJS PERL 6|
Finally got green..
I'm done... the checker is wrong.Last edit: 2015-07-25 07:35:47
I'm pretty sure this problem is not being checked right in java... After 10 attempts I checked with 100 Strings against a code that was accepted... and both produce the same results... but mine is still rejected...
Can I take char array as input?
With the same code, I am getting write answer in codechef judge , where as this judge is giving me wrong answer. Can anyone explain me what's happening here pls??
finally got green AC after a week of volunteer works. It's so exciting. :)
the output shouldn't have new line at last.
I wrote the code for these exercise in python. Always gave me Time Exceeded. This is for python??.
PALIN in my compiller it is executed u give so many large number it does care but here wrong answer coming.what the fuck is this
:D Got AC in 2nd attempt!