Please look at three points below, that contradict to each other:
Time limit is always language dependent. The given Time Limit 1 sec is for c or c++.
Other languages have Time multipliers.
For Java, Time Limit=1sec * 2=2 sec
For Python, Time Limit=1sec * 5=5 sec
and so on
Thanks for the reply!