PROGRAMMING:Look up the location code of Chinese characters
All Chinese characters and graphic symbols in GB 2312-80 are arranged into 94 × 94, each row is called a "area" (01 ~ 94 area), and each column is called a "bit" (01 ~ 94).
![ Title. JPG] (~ / 998d7393-039b-4fcf-8dd2-d28eed6bd2a4. JPG)
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
Taking the Chinese character "Ai" as an example, its location code is 1614, that is, 16 areas and 14 bits
16 + 160 = 176
14 + 160 = 174
When we input a Chinese character from the keyboard, we can get these two bytes (characters)
Please write a program, input Chinese characters, output the corresponding location code.
####Input format
>Chinese characters
####Output format
>Location code
####Input sample
```in
love
```
####Output sample
```out
one thousand six hundred and fourteen
```
---
Tips:
-Press Ctrl + space to switch the Chinese / Western input mode.
-Press Ctrl + shift to switch the Chinese input method.
[click here to view GB2312-80 Chinese character location code table]( https://pan.baidu.com/s/1nQVHaRmfNte7a9nWjv1S6A )
answer:If there is no answer, please comment
![ Title. JPG] (~ / 998d7393-039b-4fcf-8dd2-d28eed6bd2a4. JPG)
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
Taking the Chinese character "Ai" as an example, its location code is 1614, that is, 16 areas and 14 bits
16 + 160 = 176
14 + 160 = 174
When we input a Chinese character from the keyboard, we can get these two bytes (characters)
Please write a program, input Chinese characters, output the corresponding location code.
####Input format
>Chinese characters
####Output format
>Location code
####Input sample
```in
love
```
####Output sample
```out
one thousand six hundred and fourteen
```
---
Tips:
-Press Ctrl + space to switch the Chinese / Western input mode.
-Press Ctrl + shift to switch the Chinese input method.
[click here to view GB2312-80 Chinese character location code table]( https://pan.baidu.com/s/1nQVHaRmfNte7a9nWjv1S6A )
answer:If there is no answer, please comment