Chandu and his playing area

4.2

15 votes
Ad-Hoc, Mathematics, Open, Approved, Easy, Mathamatics
Problem

Little chandu is very fond of playing games. Recently, He found a few straws each of length 1 inches in the store room. He took all of them and decided to mark a rectangular area on the floor with straws and warn rest of the family members to not to enter that area so that he can play in peace. He wants to maximize that area. But, unable to do so, He seeks for your help. You being the elder brother of chandu, write a program for him to find maximum area that he can cover in inches using N straws.

Input:

First line of input contains an integer t. then, t lines follow each containing a single integer N - No of straws.

Output:

Print the area of largest rectangle that can be formed using the given sticks.

Constraints:

0t25000

1N1010

Sample Input
3
6
9
11
Sample Output
2
4
6
Time Limit: 1
Memory Limit: 256
Source Limit:
Contributers:
Editor Image

?