SP8995 LQDCANDY - CANDY
Description
John had a chocolate bar with the size of 2^i. At his birthday party, he shared this chocolate bar to his friend. But his friend just wanted to taste a piece of this chocolate bar which had the length of N (1
Input Format
T - the number of test cases
In each of the next T lines, there is one numbers N
Output Format
For every test case, print one line the length of the chocolate bar and the minimum number of times to break the bar.