Is it a bug?Or some silly error from my side?

programming
Tags: #<Tag:0x00007f18281792f0>

#1

My program gives a WA on submission. But if I run the same test case as custom input , generates correct output. Same thing had happened a few more times and i have no idea what 2 do?