Problem I: 10进制转R进制

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:250 Solved:115

Description

输入一个非负10 进制整数 n (n≤2^30−1),输出对应

的 R (1<R≤16)进制数。

Input

输入n和R,n为十进制数,R为需要转换的进制。

Output

输出转换的R进制数。

Sample Input Copy

31 16

Sample Output Copy

1F

Source/Category