Problem hidden
This problem was hidden by Editorial Board member probably because it has incorrect language version or invalid test data, or description of the problem is not clear.

POWEROF2 - Next power of 2

For gven integer n print next power of 2 greater than n.

Input

The first line of the standard input contains one integer t (t<10001) which is the number of test cases.

In each of the next t lines there is an integer n (0<=n<=10^9).

Output

For each test, print the next power of 2 greater than n.

Example

Input:
5
5
4
10
16
100
Output: 8
8
16
32
128


Added by:Piotr Kąkol
Date:2010-03-21
Time limit:2.828s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All except: NODEJS OBJC SCM qobi VB.NET

hide comments
2012-08-12 19:36:49 Hallvard Norheim Bø
Piotr: is the leading Python 3 solution a valid python 3 program?
49 bytes looks impossibly short for Python 3.
2012-07-19 04:56:54 Hallvard Norheim Bø
Why did #7339830 give NZEC, but #7339842 AC? The code is exactly the same. This is frustrating...
2011-07-26 09:22:19 Nebelhom
@Piotr: Ok, I achieved it now. Thanks a lot! It drives me insane, when it is little things like that ;)
2011-07-26 08:10:56 Nebelhom
@Piotr: Hi! Thanks for the hint. Removed Input and Output, but still doesn't work though ;)

do I have to provide a raw input (for the numbers to be tested) or do I provide the numbers to be tested (randomly)? Thanks again.
2011-07-25 23:04:36 Piotr KÄ…kol
@Nebelhom - You mustn't print "Input" and "Output".
2011-07-25 21:05:08 Nebelhom
I don't get what is wrong with my code. The calculations are correct (as far as I know). How does the testing work? Does the code have to chose test numbers or do I have to give a chance for input?

Last edit: 2011-07-25 21:05:28
2011-04-20 02:50:51 512_I
finally got accepted, @Piotr ;-)
2011-04-19 23:36:53 Piotr KÄ…kol
Check first few n's. ;-)
2011-04-19 18:21:25 512_I
@Poitr : now getting WA in python3.1, cant get y ?


Last edit: 2011-04-19 18:22:10
2011-04-19 13:41:04 Piotr KÄ…kol
512_I - Function bin is available from Python 3.
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.