Пример #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