Easy problems solved on 2024-11-12
This commit is contained in:
10
hiptobesquare.py
Normal file
10
hiptobesquare.py
Normal 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)
|
||||
Reference in New Issue
Block a user