[Solution] Odd Pairs CodeChef Solution 2022 | Solution CodeChef
Problem
Given an integer , determine the number of pairs such that:
- ;
- is odd.
Input Format
- The first line of input will contain a single integer , denoting the number of test cases.
- Each test case consists of a single integer .
👇👇👇👇👇
Output Format
For each test case, output the number of required pairs.
Explanation:
Test case : There are no pairs satisfying the given conditions.
Test case : The pairs satisfying both conditions are: and .
Test case : The pairs satisfying both conditions are: and .
No comments:
Post a Comment