For the above problem taking the elements as an as int gives WA but if we take the elements as strings and do the same thing as before we get an AC why?
CODE WITH INT AS INPUT : CodeChef: Practical coding for everyone
CODE WITH STRING AS INPUT: CodeChef: Practical coding for everyone
What about -0, you won’t be able to diffrentiate between -0 and 0.
2 Likes
Oh ! great observation, thanks alot !