tiles identical square tiles and wants to lay them out as one solid square, using every single tile.
Return True if that is possible (that is, tiles equals k · k for some integer k), and False otherwise.
Do not use built-in square-root helpers such as sqrt, isqrt or ** 0.5.tiles=36 → True
36 tiles make a 6 × 6 square.
tiles=20 → False
4 × 4 = 16 is too few and 5 × 5 = 25 too many, so no square works.
tiles=1 → True
tiles=36
True
Run checks the first 3 tests in your browser. Submit checks all 41 tests on the server, hidden ones included.