#3602

Hexadecimal and Hexatrigesimal Conversion

newbie · 175 · lc easy +15 · 80.7% accepted · 50 likes · top 92%

Description

Given integer n, concatenate the base-16 (hexadecimal) representation of n2 with the base-36 (hexatrigesimal) representation of n3 and return the result.

Hexadecimal uses digits 0–9 and uppercase letters A–F. Hexatrigesimal uses digits 0–9 and uppercase letters A–Z.

Code

1
2
3