My code was not passing 1 test case. problem ( strongest fighter )

my code was not passing 1 testcase ( was showing TLE ). but later on when I added the faster I/o statement in the code, it got accepted.
i wanted to ask if the time for providing input / output really matters that much???

@Usha24 yes it matters very much in online programming contests like which languages are fast and what are the ways to do it. like fast input output and using \n instead of endl and all
hope its clear if yes dont forget to hit like and mark resolved :smiley: