Why this simple small python code gives TLE?

This problem http://www.codechef.com/problems/DOORS

Gives TLE.

from math import sqrt

t = int(input())

while t>0:
    n = int(input())
    print int(sqrt(n))
    t -= 1

program is going to be waiting for you to input n, t times
If you do not provide input it is going to be waiting forever!!!
What do you want to do??

use fast i/o. That should work for this problem.