SP15627 IITKWPCO - Create Collections

Description

Little Feluda likes to play very much. As you know he only plays with numbers. So he is given n numbers. Now tries to group the numbers into disjoint collections each containing two numbers. He can form the collection containing two numbers iff small number in the collection is exactly half of large number. Given n numbers, Find out how many maximum number of collections he can form ?

Input Format

T: number of test cases. (1

Output Format

For each test case, output maximum number of collections that can be formed.