Failing test case

question- https://hack.codingblocks.com/app/contests/1289/153/problem
code- https://ide.codingblocks.com/s/326673
failing test case

Maybe you are printing on a newline. Please, check the output format.

check that question i have attached it is little bit different

There are multiple tescases in that question, clear your global array after each testcase.

1 Like