LOGTWO - PowerOf2
Given a number
Input
First line number of test cases and followed by test cases
Output
the log of the number or "NO" If not power of 2
Note: output range will be <=1000
Example
Input:
2
4
1000
Output:
2
NO
hide comments
|
Piotr KÄ…kol:
2010-10-30 08:06:17
Why I can still submit a solution to this task as it is hidden? I can't see it in tutorial category BUT it has "SPOJ Problem Set (tutorial)" while it should be "SPOJ Problem Set ()" as it is hidden. |
|
RYAN 102:
2010-10-28 03:33:56
Lol...this problem absolutely hard. The hardest among all. |
|
Muhammad Andri Ihsannudin:
2010-10-27 12:28:35
I've got a TLE for this.
|
|
Prahesa Kusuma Setia:
2010-10-27 12:27:23
why i got a WA for this? *tapi boong xD* |
|
pankaj:
2010-10-27 12:26:41
without source code accepted. |
|
Husein Alhamid:
2010-10-27 12:22:33
problem paling menantang |
|
hendrik:
2010-10-27 09:13:42
Yeah, submission without code get AC. Cool. Must be fixed and rejudged afterwards. I will discard my submission. Apart from that I think it is rather tutorial. Last edit: 2010-10-27 10:56:07 |
|
Lukmanul Hakim:
2010-10-27 08:38:15
Wah, ini mah numpang naikin poin doang XD |
|
dementor:
2010-10-27 08:06:22
just submit in python = AC |
|
sanosukesagara:
2010-10-27 06:17:49
ckckckck |
Added by: | el moatasem |
Date: | 2010-10-26 |
Time limit: | 0.200s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | C CSHARP C++ 4.3.2 CPP CPP14 CLPS LISP sbcl LISP clisp D ERL FORTRAN HASK JAVA LUA PAS-GPC PAS-FPC PERL PERL6 PHP PIKE PRLG-swi PYTHON RUBY SCALA SCM guile SCM qobi ST SQLITE TCL WHITESPACE |