Easy problems solved on 2024-11-12

This commit is contained in:
2024-11-12 22:53:08 +01:00
parent 799f2283c7
commit 020015474f
21 changed files with 93 additions and 0 deletions

10
hiptobesquare.py Normal file
View File

@@ -0,0 +1,10 @@
t = int(input())
for _ in range(t):
n = int(input()) + 1
max_size = int(n**0.5)
if max_size % 2 == 0:
max_size -= 2
else:
max_size -= 1
print(max_size // 2)