Tap here to switch tabs
Problem
Submissions

Problem: Hexadecimal and Hexatrigesimal Conversion

med
30 min
Try to solve the Hexadecimal and Hexatrigesimal Conversion problem.

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

med
30 min
Try to solve the Hexadecimal and Hexatrigesimal Conversion problem.

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