Bus
시간 제한: 1000ms메모리 제한: 128MB출처: CERC 2013BOJ 9546
문제
A bus with n passengers opens its door at the bus stop. Exactly half of its passengers and an additional half of a passenger get out. On the next stop, again, half of the passengers plus half of a passenger leave the bus. This goes on for k stops in total. Knowing that the bus leaves the last stop empty, and that no one was hurt during the trip, determine the initial number n of people in the bus.
입력
The first line of input contains the number of test cases T. The descriptions of the test cases follow:
The only line of each test case contains the number of stops k, 1 ≤ k ≤ 30.
출력
For each test case, output a single line containing a single integer – the initial number of bus passengers.
예제
예제 1
입력
2 1 3
출력
1 7
코드를 제출하려면 로그인하세요.