Permute to Maximize

AtCoder
IDabc432_a
Time2000ms
Memory256MB
Difficulty
You are given three digits $A,B,C$ between $1$ and $9$, inclusive. Find the maximum value among all $3$\-digit integers that can be formed by arranging $A,B,C$ in any order and concatenating them. ## Constraints * $A,B,C$ are digits between $1$ and $9$, inclusive. ## Input The input is given from Standard Input in the following format: $A$ $B$ $C$ [samples]
Samples
Input #1
3 2 4
Output #1
432

There are six $3$\-digit integers that can be formed by arranging $A,B,C$ in any order and concatenating them: $324$, $342$, $234$, $243$, $432$, $423$; the maximum value among them is $432$.
Input #2
7 7 7
Output #2
777

Only $777$ can be formed.
Input #3
9 1 9
Output #3
991
API Response (JSON)
{
  "problem": {
    "name": "Permute to Maximize",
    "description": {
      "content": "You are given three digits $A,B,C$ between $1$ and $9$, inclusive. Find the maximum value among all $3$\\-digit integers that can be formed by arranging $A,B,C$ in any order and concatenating them.",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc432_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "You are given three digits $A,B,C$ between $1$ and $9$, inclusive.\nFind the maximum value among all $3$\\-digit integers that can be formed by arranging $A,B,C$ in any order and concatenating them.\n\n##...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments