2021年7月1日是我国第100个建党节,也是“两个一百年”中的第一个一百年——到建党一百年时,使国民经济更加发展,各项制度更加完善。

然而共产党于1921年7月23日成立后,在反动军阀政府的残暴统治之下,只能处于秘密状态,没有公开进行活动的环境,远程的秘密情报需要通过电报+“密码本”的方式才能完成高效加密传递。

然而共产党于1921年7月23日成立后,在反动军阀政府的残暴统治之下,只能处于秘密状态,没有公开进行活动的环境,远程的秘密情报需要通过电报+“密码本”的方式才能完成高效加密传递。

#### 现在需要你为我党情报人员编制多本特殊密码本——需要根据下图以及“七段数码管的原理和特征”为“0~9”的每一个数字都编制一个十六进制密码,以防止敌军截获我方重要情报。

### 输入格式:
为上图七段数码管的标注数字“1、2、3、4、5、6、7”分别输入“A~G”中的某一段,保证输入的每段不重复,中间用空格隔开,用大写字母表示。
### 输出格式:
“0~9”每一个数字对应的十六进制密码对应数码管的显示结果,其中标注数字“7”为最高有效位,标注数字”1”为最低有效位,其他为默认为0.输出的十六进制结果需要加前缀0x,字母为小写。
### 举例说明:
(1)若用户输入BCDEFGA,即表示上图标注数字1代表B段,标注数字2代表C段,以此类推,标注数字7代表A段。
(2)那么,根据依据数码关“数码管亮为1,不亮为0”显示结果,当标注数字7不亮时也是就A段=0,数码管会呈现出数字“0”。因此,数字“0”的密码按照固定的排列顺序[G→F→E→D→C→B→A]可以组合得到十六进制密码0x7e(1111110),同理数字“1”的十六进制密码为0xc(0001100)。
### 输入样例:
在这里给出一组输入。例如:
in
ABCDEFG
BCDEFGA
### 输出样例:
在这里给出相应的输出。例如:
out
the password of character 0 is 0x3f.
the password of character 1 is 0x6.
the password of character 2 is 0x5b.
the password of character 3 is 0x4f.
the password of character 4 is 0x66.
the password of character 5 is 0x6d.
the password of character 6 is 0x7d.
the password of character 7 is 0x7.
the password of character 8 is 0x7f.
the password of character 9 is 0x6f.
out
the password of character 0 is 0x7e.
the password of character 1 is 0xc.
the password of character 2 is 0x37.
the password of character 3 is 0x1f.
the password of character 4 is 0x4d.
the password of character 5 is 0x5b.
the password of character 6 is 0x7b.
the password of character 7 is 0xe.
the password of character 8 is 0x7f.
the password of character 9 is 0x5f.
答案:若无答案欢迎评论

然而共产党于1921年7月23日成立后,在反动军阀政府的残暴统治之下,只能处于秘密状态,没有公开进行活动的环境,远程的秘密情报需要通过电报+“密码本”的方式才能完成高效加密传递。

#### 现在需要你为我党情报人员编制多本特殊密码本——需要根据下图以及“七段数码管的原理和特征”为“0~9”的每一个数字都编制一个十六进制密码,以防止敌军截获我方重要情报。

### 输入格式:
为上图七段数码管的标注数字“1、2、3、4、5、6、7”分别输入“A~G”中的某一段,保证输入的每段不重复,中间用空格隔开,用大写字母表示。
### 输出格式:
“0~9”每一个数字对应的十六进制密码对应数码管的显示结果,其中标注数字“7”为最高有效位,标注数字”1”为最低有效位,其他为默认为0.输出的十六进制结果需要加前缀0x,字母为小写。
### 举例说明:
(1)若用户输入BCDEFGA,即表示上图标注数字1代表B段,标注数字2代表C段,以此类推,标注数字7代表A段。
(2)那么,根据依据数码关“数码管亮为1,不亮为0”显示结果,当标注数字7不亮时也是就A段=0,数码管会呈现出数字“0”。因此,数字“0”的密码按照固定的排列顺序[G→F→E→D→C→B→A]可以组合得到十六进制密码0x7e(1111110),同理数字“1”的十六进制密码为0xc(0001100)。
### 输入样例:
在这里给出一组输入。例如:
in
ABCDEFG
BCDEFGA
### 输出样例:
在这里给出相应的输出。例如:
out
the password of character 0 is 0x3f.
the password of character 1 is 0x6.
the password of character 2 is 0x5b.
the password of character 3 is 0x4f.
the password of character 4 is 0x66.
the password of character 5 is 0x6d.
the password of character 6 is 0x7d.
the password of character 7 is 0x7.
the password of character 8 is 0x7f.
the password of character 9 is 0x6f.
out
the password of character 0 is 0x7e.
the password of character 1 is 0xc.
the password of character 2 is 0x37.
the password of character 3 is 0x1f.
the password of character 4 is 0x4d.
the password of character 5 is 0x5b.
the password of character 6 is 0x7b.
the password of character 7 is 0xe.
the password of character 8 is 0x7f.
the password of character 9 is 0x5f.
答案:若无答案欢迎评论