Your program seems correct.
That is, your program did not crash with any test case
(either public or private),
it was fast enough compared to the Jutge's solution,
and its output for every case always matched
the output of the Jutge's solution.
For most problems,
the match must be strict,
although a few statements concede some flexibility.