每日codingame小游戏练习[2021.4.02](python3入门学习之int()方法)

题目描述

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=
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 4
    评论
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值