-->
当前位置:首页 > 题库

PROGRAMMING:National standard code input method

Luz5年前 (2021-05-10)题库457
According to GB2312-80, all Chinese characters and graphic symbols are arranged into 94 × 94, each row is called a "area" (01 ~ 94 area), and each column is called a "bit" (01 ~ 94).
|The location is | 01 | 02 | 03 | 04 | 05 | 06 | 07 | 08 | 09 | 10 | 11 | 13 | 14 | 15 | 94|
|:---:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|
|01 |  |、 |。 |· | ˉ |ˇ |¨ |〃 |‘ |’ |“ |” |〔 |〕 |〈 |… |〓 |
|... |...|...|...|...|...|...|...|...|...|...|...|...|...|...|...|...|...|
| 16 ah ah Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai Ai|
|17 | thin hail | Bao | Bao | Bao | Bao | Bao | Bao | Bao | Bao | Bao | Bao | Bao | Bei | Bei | Bing|
|18. The disease, the disease, the disease, the disease, the disease, the disease, the disease, the disease, the disease, the disease, the disease, the disease, the disease, the disease, the disease, the disease, the disease, the disease, the disease, the disease, the disease, the disease, the disease, the disease, the disease, the disease, the disease, the disease, the disease, the disease, the disease, the disease, the disease, the disease, the disease, the disease, the disease|
|19. Chang Chang Chang Chang Chang Chang Chang Chang Chang Chang Chang Chang Chang Chang Chang Chang Chang Chang Chang Chang Chang Chang Chang Chang Chang Chang Chang chao chao chao|
|20. We're going to be in the middle of the world, we're going to be in the middle of the world, we're going to be in the middle of the world, we're going to be in the middle of the world, we're going to be in the middle of the world, we're going to be in the middle of the world, we're going to be in the middle of the world, we're going to be in the middle of the world, we're going to be in the middle of the world|
|21. I'm sorry, but I'm afraid I can't|
|22. Ding ding ding ding ding ding ding ding ding ding ding ding ding ding ding ding ding ding ding ding ding ding ding ding ding ding dong dong dong dong dong|
|23. We are looking forward to your visit. We are looking forward to your visit|
|We're going to have a good time, we're going to have a good time, we're going to have a good time, we're going to have a good time, we're going to have a good time|
|... |...|...|...|...|...|...|...|...|...|...|...|...|...|...|...|...|...|
|94 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
The internal code of Chinese characters consists of high and low bytes, which are obtained by adding 160 to area code and bit code respectively. Namely:
High byte = area code + 160
Low byte = bit code + 160
The two byte internal code of Chinese characters is regarded as a 16 bit binary integer, and then written in hexadecimal, which is the national standard code of Chinese characters.
Taking the Chinese character "Ai" as an example, its location code is 1614, that is, 16 areas and 14 bits
$$16 + 160 = 176 = (b0)_{ 16}$$
$$14 + 160 = 174 = (ae)_{ 16}$$
Therefore, the national standard code of Chinese character "Ai" is b0ae.
Output these two bytes (characters) in turn
```
putchar(0xb0);
putchar(0xae);
```
You can get a complete Chinese character "love".
```
love
```
Please write a program, input GB code, output the corresponding Chinese characters.
####Input format
>GB code
####Output format
>Corresponding Chinese characters
####Input sample
```in
b0ae
```
####Output sample
```out
love
```
---
You write this small program can be used as a Chinese character input method - "GB code input method" - to use it!







answer:If there is no answer, please comment