i m getting the correct answer on my compiler…but when i submit the code…it shows WRONG ANSWER…what do i do?
Recheck your code. It’s all we can tell you before the round ends.
is there any format for printing the output
do n integers have to be space separated in output
check your code ones again if your algorithm goes right then probably there is some problem with the type take every number in long long instead of int . i was also getting WA because of same .