题解 | #skew数#
skew数
https://www.nowcoder.com/practice/5928127cc6604129923346e955e75984
import sys
for line in sys.stdin:
n = len(line) - 1
ans = 0
for c in line[:n]:
ans += int(c) * (2 ** n - 1)
n -= 1
print(ans)
skew数
https://www.nowcoder.com/practice/5928127cc6604129923346e955e75984
import sys
for line in sys.stdin:
n = len(line) - 1
ans = 0
for c in line[:n]:
ans += int(c) * (2 ** n - 1)
n -= 1
print(ans)
相关推荐
xiaowl:你这个简历的问题是对于技术点、项目的描述,都是描述action的,对于面试官而言,仅能知道你干了什么,无法判断你为什么这么干,干的好不好。
爱吃香菜的无尾熊服了...:好文 共勉了兄弟 加油