Published August 24, 2022 by

Odd Pairs Codechef code Java (ODDPAIRS)

Problem

  • Given an integer NN, determine the number of pairs (A, B)(A,B) such that:
  • 1<=A,B<=N
  • A + B is odd.

Input Format

  • The first line of input will contain a single integer TT, denoting the number of test cases.
  • Each test case consists of a single integer NN.

Output Format

For each test case, output the number of required pairs.

Constraints

  • 1<=T<=100
  • 1<=N<=10^9

Input

  • 5
  • 1
  • 2
  • 3
  • 100
  • 199

Output

  • 0
  • 2
  • 4
  • 5000
  • 19800