예제 #1
0
def sol() -> Solution:
    return Solution()
예제 #2
0
def test_2401_true(sol: Solution, ):
    assert sol.is_perfect_square(2401) == True
예제 #3
0
def test_100_true(sol: Solution, ):
    assert sol.is_perfect_square(100) == True
예제 #4
0
def test_4_true(sol: Solution, ):
    assert sol.is_perfect_square(4) == True
예제 #5
0
def test_2_false(sol: Solution, ):
    assert sol.is_perfect_square(2) == False
예제 #6
0
def squares_under_5k_all_true(sol: Solution, ) -> bool:
    for j in range(1, 5_001):
        if not sol.is_perfect_square(j**2):
            return False