CodeChef is a non-commercial competitive programming community
Login
Username (New User? Signup) Password (Forgot Password?)
Signup
Login or
Signup with
Connect
Note
  • Publicize your achievements on your Facebook Wall.
  • Challenge your friends or ask them for help.

Site Navigation

  • PRACTICE
    • Easy
    • Medium
    • Hard
    • Challenge
    • Peer
  • COMPETE
    • All Contests
    • June Long 2012
    • May Cook-Off
    • May Long 2012
  • DISCUSS
    • Wiki
    • Forums
    • Blog
    • Facebook
    • Twitter
  • COMMUNITY
    • CodeChef Meetups
    • Campus Chapters
    • Host your Contest
    • User Groups
    • CodeChef TechTalks
    • All Educational Initiatives
    • Event Calendar
  • HELP
    • Frequently Asked Questions
    • FAQ for problem setters
    • Problem Setting
    • Tutorials
    • Long Contest Ranks
    • Short Contest Ranks
  • ABOUT
    • About CodeChef
    • Team CodeChef
    • Press Room
    • CodeChef Financials
    • CodeChef Sponsorships
    • CEO's Corner
    • Contact Us
    • About Directi
Home » Compete » CE 2010 » Shifty Numbers

Shifty Numbers

Problem code: CE07

  • All Submissions

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


  • Submit

Comments

  • Login or Register to post a comment.

how can you shift a no. say

bst0602 @ 25 Mar 2010 09:44 PM

how can you shift a no. say 100 places??? the largest data type we have is 64 bit

check the time limits, I

mehrotra.akash @ 26 Mar 2010 09:18 AM

check the time limits, I think there is some problem

even taking the input only exceeds the time limit

@akash same problem with me.

mcsharma1990 @ 26 Mar 2010 04:06 PM

@akash same problem with me.

same prob wit me too!!!

cinash @ 26 Mar 2010 04:19 PM

same prob wit me too!!!

i think there are few test

SITZ @ 26 Mar 2010 04:58 PM

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

mehrotra.akash @ 26 Mar 2010 10:09 PM

@Sitesh

Thx that fixed it

do read input till EOF,else u

coders1122 @ 27 Mar 2010 02:05 AM

do read input till EOF,else u wont get AC! :)

i am getting the correct

tapan.thaker @ 28 Mar 2010 01:29 AM

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

tapan.thaker @ 29 Mar 2010 02:32 AM

i still didnt understand the EOF thing , can any one plz plz help me out

know , my progrm if correct ,

tapan.thaker @ 29 Mar 2010 09:47 AM

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

akashheart02 @ 31 Mar 2010 09:00 PM

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.

:(

:(

:(

SUCCESSFUL SUBMISSIONS FOR THIS PROBLEM:

Programming Competition Fetching successful submissions
Directi Go for Gold
CodeChef is a global programming communityCodeChef hosts online programming competitions
CodeChef is a non-commercial competitive programming community
  • About CodeChef
  • About Directi
  • CEO's Corner
  • C-Programming
  • Programming Languages
  • Contact Us
© 2009 Directi Group. All Rights Reserved. CodeChef uses SPOJ © by Sphere Research Labs
In order to report copyright violations of any kind, send in an email to copyright@codechef.com
CodeChef a product of Directi
The time now is:
CodeChef - A Platform for Aspiring Programmers

CodeChef was created as a platform to help programmers make it big in the world of computer programming. At CodeChef we work hard to revive the geek in you by hosting programming contests on a monthly basis. We also aim to have training sessions and events related to online programming for programmers around the world. Apart from providing a platform for programming competitions, CodeChef also has various tutorials and forum discussions to help those who are new to the world of computer programming.

Practice Section - A Place to hone your 'Computer Programming Skills'

Try your hand at one of our many practice problems and submit your solution in a language of your choice. Our judge accepts solutions in over 35+ programming languages. Online programming was never this much fun! Receive points, and move up through the CodeChef ranks. Use our practice section to better prepare yourself for the multiple programming competitions that take place through-out the month on CodeChef.

Compete - Monthly Programming Contests and Cook-offs

Here is where you can show off your computer programming skills. Take part in our 10 day long monthly programming contests and the shorter format Cook-off programming contests. Put yourself up for recognition and win great prizes. Prizes worth up to Rs.20,000 and $700 are up for grabs every month along with lots more CodeChef goodies.

Discuss

Are you new to computer programming? Do you need help with algorithms? Then be part of CodeChefs Forums and interact with all our programmers love helping out other programmers and share their ideas.

CodeChef Community

As part of our Educational initiative, we give institutes the opportunity to associate with CodeChef in the form of Campus Chapters. Hosting online programming competitions is not the only feature on CodeChef. Be a part of the CodeChef community through CodeChef meetups and techtalks. You can also host a programming contest for your institute on CodeChef and be a guest author on our blog.

Go For Gold

The Go for Gold Initiative was launched about a year after CodeChef was incepted, to help prepare Indian students for the ACM ICPC World Finals competition. In the run up to the ACM ICPC competition, the Go for Gold initiative uses CodeChef as a platform to train students for the ACM ICPC competition via multiple warm up contests. As an added incentive the Go for Gold initiative is also offering over Rs.8 lacs to the Indian team that beats the 29th position at the ACM ICPC world finals. Find out more about the Go for Gold and the ACM ICPC competition here.

Domain Name Registration, Web hosting, and Website Design provided by BigRock.com