Chandu and his playing area
Practice
4.2 (15 votes)
Ad Hoc
Mathematics
Open
Approved
Easy
Mathamatics
Problem
68% Success 9071 Attempts 20 Points 1s Time Limit 256MB Memory 1024 KB Max Code

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:

\(0 \le t \le 25000\)

\(1 \le N \le 10^{10}\)

Please login to use the editor

You need to be logged in to access the code editor

Loading...

Please wait while we load the editor

Loading...
Results
Custom Input
Run your code to see the output
Submissions
Please login to view your submissions
Similar Problems
Points:20
10 votes
Tags:
OpenAlgorithmsApprovedEasyMathamatics
Points:20
Tags:
Easy
Points:20
2 votes
Tags:
Ad-HocMathematicsOpenApprovedEasy