cfn
cfn
全部文章
分类
归档
标签
去牛客网
登录
/
注册
cfn的博客
全部文章
(共137篇)
题解 | #[NOIP2018]标题统计#
n=input() num='0123456789' count=0 for i in n: if i in num or i.isalpha(): count+=1 print(count)
2023-03-19
0
249
题解 | #矩阵转置#
n,m = map(int,input().split()) list1=[] for i in range(n): a=list(map(int,input().split())) list1.append(a) for i in range(m): for j in ra...
2023-03-12
0
275
题解 | #序列重组矩阵#
n,m = map(int,input().split()) a=list(map(int,input().split())) for i in range(n): for j in range(m): print(a[i*m+j],end=" ") print()
2023-03-12
0
229
题解 | #KiKi判断上三角矩阵#
n=int(input()) list1=[] for i in range(n): a=list(map(int,input().split())) list1.append(a) num=0 for j in range(1,n): for k in range(j): ...
2023-03-12
0
260
题解 | #矩阵计算#
n,m = map(int,input().split()) list1=[] list2=[] for i in range(n): a=list(map(int,input().split())) list1.extend(a) for j in list1: if j&...
2023-03-12
0
291
题解 | #矩阵相等判定#
n,m = map(int,input().split()) a=[] b=[] for i in range(n): a.append(input().split()) for j in range(n): b.append(input().split()) if a==b: ...
2023-03-12
0
301
题解 | #最高身高#
n,m = map(int,input().split()) lines = [] for i in range(n): temp = list(map(int,input().split())) lines.extend(temp) max_num = max(lines) max...
2023-03-12
0
270
题解 | #矩阵元素定位#
n,m = map(int,input().split()) list1=[] for i in range(1,n+1): num=input().split() list1.append(num) x,y=map(int,input().split()) print(list1[...
2023-03-12
0
238
题解 | #班级成绩输入输出#
m1 = list(map(float, input().split())) m2 = list(map(float, input().split())) m3 = list(map(float, input().split())) m4 = list(map(float, input().spli...
2023-03-12
0
237
题解 | #序列中整数去重#
n=int(input()) m=list(map(int,input().split())) a=[] for i in m: if i not in a: a.append(i) else: continue for i in a: pri...
2023-03-11
0
176
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页