GUTTSS - Fight with Abhishek

no tags 

Abhishek popularly known as "Gutts" by his friends Anurag garg and Bhavik, is very good at solving logical problems. Recently he was solving some encryption problem and challenges Bhavik to solve the same.Bhavik being lazy asks for your help to encrypt the numbers using some test cases given by "Gutts";

your task is to find the encypted numbers for the input numbers:

Input

Input contains several numbers each in a different line 

first line contains T : number of test cases (T <= 100)
For next T lines each line contains a number n (0<=n<2^64)

Output

For every test case print encrypted number in separate line .

Input:
6
2
3
6
7
17
25

Output:
0
1
1
3
8
9
NOTE: for each test case ans will be less than 2^64

hide comments
Raja Singla: 2014-11-08 21:05:57

admin please check id:11211627

---anurag--->
your code fails for many test cases
wrong for 101

--raja--->
@anurag..there was a small mistake in 1st submission
but my second submission seems to be logical...
email me please @singla.raja@gmail.com

I have mailed you..

Last edit: 2014-03-18 15:36:24

Added by:anurag garg
Date:2014-01-09
Time limit:1s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All except: ASM64
Resource:own problem