题目描述
Here a short step by step process:
ABCZ
A
65
1000001
6 0
60
B
66
1000010
6 0
61
c
67
1000011
6 10
610
z
90
1011010
6 43 1
60 61 61 6431
The message " ABCZ is transform to"60 61 610 6431".
You get an unreadable message like " 60 61 610 6431". you must transform it to an readable one like ABCZ.
eg:
Input | Output |
---|---|
60 6410 610 630 630 | ASCII |
题目分析
题目我没写出来,题目分析如下代码块:
A
65 //ascll码对应的十进制
1000001 //二进制
6 0 //第几位有1
60 // 拼接
解题代码
来自瑞典的老哥的代码:
import sys
import math
# Auto-generated code below aims at helping you parse
# the standard input according to the problem statement.
o=""
unreadabl= input()
for i in unreadabl.split():
s=