我是芭芭拉的狗
我是芭芭拉的狗
全部文章
分类
归档
标签
去牛客网
登录
/
注册
我是芭芭拉的狗的博客
全部文章
(共154篇)
题解 | 序列重组矩阵
n, m = map(int, input().split()) l = list(map(int, input().split())) for i in range(n): l1 = l[0:m] l = l[m:] print(' '.join(map(str, l1))...
2025-12-19
1
11
题解 | KiKi判断上三角矩阵
n = int(input()) ge = 0 z = 0 for i in range(n): l = list(map(int, input().split())) s = ge if s != 0: for j in range(s): ...
2025-12-19
1
17
题解 | 图像相似度
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
12
题解 | 班级成绩输入输出
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
11
题解 | 筛选法求素数
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
13
题解 | 小乐乐查找数字
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
9
题解 | 序列中整数去重
n = int(input()) l = list(map(int, input().split())) l = list(dict.fromkeys(l)) print(' '.join(map(str, l)))
2025-12-17
1
10
题解 | 序列中删除指定数字
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
12
题解 | 有序序列插入一个整数
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
11
题解 | 有序序列判断
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
10
首页
上一页
4
5
6
7
8
9
10
11
12
13
下一页
末页