我是芭芭拉的狗
我是芭芭拉的狗
全部文章
分类
归档
标签
去牛客网
登录
/
注册
我是芭芭拉的狗的博客
全部文章
(共162篇)
题解 | 图像相似度
n, m = map(int, input().split()) zong = n * m l1 = [] l2 = [] tong = 0 for i in range(n): l = list(map(int, input().split())) l1 = l1 + l for ...
2025-12-19
1
25
题解 | 班级成绩输入输出
while True: try: l = list(map(float, input().split())) s = 0 for i in l: s = s + i l.append(s) ...
2025-12-17
1
32
题解 | 筛选法求素数
n = int(input()) l = [] g = 0 for i in range(2,n+1): y = 0 for j in range(2,i): if i % j == 0: y = y + 1 if y == 0: ...
2025-12-17
1
28
题解 | 小乐乐查找数字
n = int(input()) l = list(map(int, input().split())) x = int(input()) c = 0 for i in l: if i == x: c = c + 1 print(c)
2025-12-17
1
26
题解 | 序列中整数去重
n = int(input()) l = list(map(int, input().split())) l = list(dict.fromkeys(l)) print(' '.join(map(str, l)))
2025-12-17
1
32
题解 | 序列中删除指定数字
n = int(input()) l = list(map(int, input().split())) m = int(input()) while m in l: l.remove(m) print(' '.join(map(str, l)))
2025-12-17
1
28
题解 | 有序序列插入一个整数
n = int(input()) l = list(map(int, input().split())) m = int(input()) l.append(m) l.sort() print(' '.join(map(str, l)))
2025-12-17
1
25
题解 | 有序序列判断
n = int(input()) l = list(map(int,input().split())) s = sorted(l) d = s[::-1] if l == s: print('sorted') elif l == d: print('sorted') else: ...
2025-12-17
1
32
题解 | 有序序列合并
n, m = input().split() l1 = list(map(int, input().split())) l2 = list(map(int, input().split())) l = l1 + l2 l.sort() for i in l: print(i,end='') ...
2025-12-17
1
26
题解 | 争夺前五名
n = int(input()) l = list(map(int, input().split())) d1 = max(l) l.remove(max(l)) d2 = max(l) l.remove(max(l)) d3 = max(l) l.remove(max(l)) d4 = max(l...
2025-12-17
0
27
首页
上一页
5
6
7
8
9
10
11
12
13
14
下一页
末页