#PCBTAM0000007. Mã Unicode của ký tự (Unicode Code Point)
Mã Unicode của ký tự (Unicode Code Point)
Unicode Code Point
Version: Phuoc Hung OJ Extended
Problem Statement
Every Unicode character has an integer value called a Unicode code point. For example, A has code point , while Đ has code point .
Given one character , determine its Unicode code point, not its UTF-8 byte length or encoded bytes.
Input
One line contains exactly one Unicode character , excluding the terminating newline.
Output
Print one decimal integer: the Unicode code point of .
Subtasks
- Subtask 1 (100 points): is a valid displayable Unicode character from the test data, including printable ASCII and the supplied Vietnamese or other Unicode characters.
Examples
Example 1
Input
A
Output
65
Explanation. A has Unicode code point .
Example 2
Input
0
Output
48
Explanation. The digit character 0 has code point , not numeric value .
Example 3
Input
Đ
Output
272
Explanation. Đ has code point U+0110, which is in decimal.