melon.
melon.
全部文章
分类
归档
标签
去牛客网
登录
/
注册
melon.的博客
全部文章
(共117篇)
题解 | #序列中删除指定数字#
dummy = input() list = list(map(int,input().split())) num = int(input()) while 1: try: list.remove(num) except: break for i ...
2023-02-18
1
203
题解 | #有序序列插入一个整数#
len = int(input()) list = list(map(int,input().split())) num = int(input()) for i in range(len): if num < min(list): list.insert(0,num...
2023-02-18
1
255
题解 | #有序序列合并#
dummy = input() num1 = list(map(int,input().split())) num2 = list(map(int,input().split())) num3 = num1 + num2 for i in sorted(num3): print(i,en...
2023-02-18
1
241
题解 | #争夺前五名#
dummy = input() map = list(map(int,input().split())) for i in sorted(map,reverse=True)[:5]: print(i,end=' ')
2023-02-18
1
220
题解 | #最高分与最低分之差#
dummy = input() map = list(map(int,input().split())) max = max(map) min = min(map) print(max - min )
2023-02-18
1
266
题解 | #N个数之和#
shit = input() map = map(int,input().split()) print(sum(map))
2023-02-18
1
249
题解 | #N个数之和#
shit = input() map = map(int,input().split()) sum = 0 for i in map: sum += i print(sum)
2023-02-18
1
257
题解 | #逆序输出#
s = input().split() s = ' '.join(s[::-1]) print(s)
2023-02-18
1
221
题解 | #[NOIP2013]记数问题#
n,x = input().split() n = int(n) count = 0 for i in range(1,n+1): i = str(i) for j in i: if j == x: count += 1 print(cou...
2023-02-18
1
273
题解 | #K形图案#
while 1: try: n = int(input()) n += 1 for i in range(n): print('* '*(n-i)) for j in range(2,n+1): ...
2023-02-17
1
252
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页