Hackerrank solutions.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

16 lines
304 B

#!/usr/bin/python3
# https://www.hackerrank.com/challenges/halloween-party
import sys
def max_pieces(n):
return (n // 2) * ((n+1) // 2)
def main():
T = int(sys.stdin.readline())
for _ in range(T):
print(max_pieces(int(sys.stdin.readline())))
if __name__ == '__main__':
main()