Shifty NumbersProblem code: CE07 |
Shifty numbers are a special set of numbers which have been developed by byteland scientists,these exhibit special properties you can check from the ouput given below. They are the sum of their own digits and this sum has been shifted in binary by 'n' digits where 'n' is the input decimal number.
Input
The first line will consist of the total number of test cases T(1<=T<=10). The next T lines will consist of one number on each line. This is the number N(1<=N<=100000000).
Output
For each test case, output a single line which returns the corresponding coded message.
Example
Input:5
1
3
5
7
9
Output:
2
24
160
896
4608
| Author: | cerebration |
| Date Added: | 23-03-2010 |
| Time Limit: | 1 sec |
| Source Limit: | 50000 Bytes |
| Languages: | BF, CLOJ, CPP 4.3.2, F#, GO, ICK, JS, PERL6, PRLG, PYTH 3.1.2, TEXT, WSPC |
Comments

Fetching successful submissions

how can you shift a no. say
how can you shift a no. say 100 places??? the largest data type we have is 64 bit
check the time limits, I
check the time limits, I think there is some problem
even taking the input only exceeds the time limit
@akash same problem with me.
@akash same problem with me.
same prob wit me too!!!
same prob wit me too!!!
i think there are few test
i think there are few test cases than the required (less than 't')..
take input till EOF and ur prolems are solved... I did it too and got AC... :)
@Sitesh Thx that fixed it
@Sitesh
Thx that fixed it
do read input till EOF,else u
do read input till EOF,else u wont get AC! :)
i am getting the correct
i am getting the correct output on my dev c++ compiler but i m getting a runtime error on submitting the program , i have no idea where have i gone wrong , can any1 give any suggestions ???
i still didnt understand the
i still didnt understand the EOF thing , can any one plz plz help me out
know , my progrm if correct ,
know , my progrm if correct , and that its printing the correct output , but still , on submitting i get wrong answer
plz help , this is my 3rd consecutive post , no 1 is replying :( .....
abe kya natak laga
abe kya natak laga rakha
suno yaar tumhe pahele batana chahiye tha ya email karna chahiye tha
this is not fair with us.
I spent my whole day for solving these problems now you are saying you haven't registred.
sending information of this much value throungh comment is not good.
please be fair in judging.
:(
:(
:(