484558

AtCoder
IDabc271_a
Time2000ms
Memory256MB
Difficulty
In the hexadecimal system, where the digits `ABCDEF` corresponding to $10,11,12,13,14$, and $15$ are used in addition to `0123456789`, every integer between $0$ and $255$ is represented as a $1$\- or $2$\-digit numeral. For example, $0$ and $12$ are represented as $1$\-digit hexadecimal numerals `0` and `C`; $99$ and $255$ are represented as $2$\-digit hexadecimals `63` and `FF`. Given an integer $N$ between $0$ and $255$, convert it to an exactly two-digit hexadecimal numeral, prepending leading `0`s if necessary. ## Constraints * $0 \leq N \leq 255$ * $N$ is an integer. ## Input The input is given from Standard Input in the following format: $N$ [samples] ## Notes The judge is case-sensitive. Specifically, you **cannot** use `abcdef` as hexadecimal digits instead of `ABCDEF`.
Samples
Input #1
99
Output #1
63

$99$ is represented as `63` in hexadecimal.
Input #2
12
Output #2
0C

$12$ is represented as `C` in hexadecimal.  
Since we ask you to convert it to a two-digit hexadecimal numeral, the answer is `0C`, where `0` is prepended to `C`.
Input #3
0
Output #3
00
Input #4
255
Output #4
FF
API Response (JSON)
{
  "problem": {
    "name": "484558",
    "description": {
      "content": "In the hexadecimal system, where the digits `ABCDEF` corresponding to $10,11,12,13,14$, and $15$ are used in addition to `0123456789`, every integer between $0$ and $255$ is represented as a $1$\\- or ",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc271_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "In the hexadecimal system, where the digits `ABCDEF` corresponding to $10,11,12,13,14$, and $15$ are used in addition to `0123456789`, every integer between $0$ and $255$ is represented as a $1$\\- or ...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments