Tap here to switch tabs
Problem
Submissions

Problem: Hexadecimal and Hexatrigesimal Conversion

Hexadecimal and Hexatrigesimal Conversion converts an integer's square to uppercase base 16 and its cube to uppercase base 36, then returns both representations joined together.

Statement

Given an integer n, compute the following:

  • Convert n2n^2 into its uppercase hexadecimal (base 1616) representation.

  • Convert n3n^3 into its uppercase hexatrigesimal (base 3636) representation.

Return the concatenated string of the hexadecimal representation followed by the hexatrigesimal representation.

Constraints:

  • 1≤1 \leq n ≤1000\leq 1000

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Hexadecimal and Hexatrigesimal Conversion

Hexadecimal and Hexatrigesimal Conversion converts an integer's square to uppercase base 16 and its cube to uppercase base 36, then returns both representations joined together.

Statement

Given an integer n, compute the following:

  • Convert n2n^2 into its uppercase hexadecimal (base 1616) representation.

  • Convert n3n^3 into its uppercase hexatrigesimal (base 3636) representation.

Return the concatenated string of the hexadecimal representation followed by the hexatrigesimal representation.

Constraints:

  • 1≤1 \leq n ≤1000\leq 1000