728x90
반응형

단순 사칙연산 문제이다.

for _ in range(int(input())):
    n = int(input())
    t = 0
    while (t+1) + (t+1)**2 <= n:
        t += 1
    print(t)
728x90
반응형

+ Recent posts