Problem with complier


#1

My code is working correctly when I run it as custom input, but shows different results while submitting