a,n = map(int,input().split(' '))
s = sum([int(str(a)*i) for i in range(1,n+1)])
print('s = %d' % s)
浙大版《Python 程序设计》题目集 第2章-4 特殊a串数列求和 (20分)
猜你喜欢
转载自blog.csdn.net/weixin_42229583/article/details/104553662
今日推荐
周排行