D. Numbers in Negative Base

0

0 votes
Bit manipulation, Easy
Problem

Kirti has got a special task for you. She will give you  numbers and you have to output their representation in base , each on a new line.

 

INPUT

First line contains a number , i.e. number of test cases.

Next  lines contains a integer  is in decimal format.

 

OUTPUT

Print  lines, each containing the equivalent representation of  number in base .

 

CONSTRAINTS

 i.e absolute value of 

 

Note : This is a golf question. If your program produces all output correctly, then the score you'll get is determined by the number of non-whitespace characters used in your code. The lower the count of characters, higher will be your score.

Sample Input
5
12
1
2
3
4
Sample Output
11100
1
110
111
100
Time Limit: 1
Memory Limit: 256
Source Limit:
Explanation

For  number i.e 12

 

 

Editor Image

?