a=eval(input()) n=eval(input()) m=0 sum=0 for i in range(1,n+1): m=m*10+2 sum+=m print("{}".format(sum)) ...
分类:
其他好文 时间:
2020-03-28 23:41:39
阅读次数:
66
n=eval(input()) num=1 hebing=0 if n>0: for i in range(1,n+1): num=i*num hebing+=num print("%d"%(hebing)) ...
分类:
其他好文 时间:
2020-03-28 23:37:52
阅读次数:
56
a,b = map(int,input().split(' ')) if(a > 0 and b >0 and b % 2 == 0 and b-2*a>0): for x in range(1,a+1): y=a-x if 2*x+4*y==b: print("{} {}". format(x,y ...
分类:
其他好文 时间:
2020-03-28 23:29:28
阅读次数:
93
[toc] Description A number is called quasibinary if its decimal representation contains only digits 0 or 1. For example, numbers 0, 1, 101, 110011 — a ...
分类:
其他好文 时间:
2020-03-28 20:25:08
阅读次数:
93
因为你的video的src不是直接使用视频文件的地址,而是通过后台接口返回文件流,后台返回流的时候没为response的header设置一些参数,否则会在部分浏览器有问题 String rangeString = request.getHeader("Range");//如果是video标签发起的请 ...
分类:
其他好文 时间:
2020-03-28 18:07:34
阅读次数:
573
1、画五角星 import turtle turtle.pensize(5) turtle.pencolor("yellow") turtle.fillcolor("red") turtle.begin_fill() for i in range(5): turtle.forward(200) tu ...
分类:
其他好文 时间:
2020-03-28 16:22:18
阅读次数:
84
SOS问题 模板 cpp //iterative version for(int mask = 0; mask https://codeforces.com/blog/entry/45223 https://blog.csdn.net/weixin_38686780/article/details/ ...
分类:
其他好文 时间:
2020-03-28 01:17:25
阅读次数:
106
100个不同类型的python语言趣味编程题 实例011:养兔子 题目 有一对兔子,从出生后第3个月起每个月都生一对兔子,小兔子长到第三个月后每个月又生一对兔子,假如兔子都不死,问每个月的兔子总数为多少? 此题与趣味算法第五题是同一题,因此在这里列出另一种解法,具体分析请看趣味算法第五题。 程序分析 ...
分类:
其他好文 时间:
2020-03-27 21:59:59
阅读次数:
111
练习3-8 查询水果价格 (15分) 给定四种水果,分别是苹果(apple)、梨(pear)、桔子(orange)、葡萄(grape),单价分别对应为3.00元/公斤、2.50元/公斤、4.10元/公斤、10.20元/公斤。 首先在屏幕上显示以下菜单: [1] apple [2] pear [3] ...
分类:
其他好文 时间:
2020-03-27 17:15:13
阅读次数:
92
切片 取一个list或者tuole得部分元素都是非常常见得操作 比如说一个list如下: >>> L = ['Michael','Sarah','Tracy','Bob','Jack'] 取前N元素 >>> r = [] >>> n = 3 >>> for i in range( >>> r.app ...
分类:
编程语言 时间:
2020-03-27 12:55:27
阅读次数:
69