canwen
canwen
全部文章
分类
题解(41)
归档
标签
去牛客网
登录
/
注册
canwen的博客
全部文章
(共50篇)
题解 | #矩阵计算#
#2022/6/2 N,M=map(int,input().split()) lis=[] lis1=[] sum1=0 for i in range(N): val=list(map(int,input().split())) lis.app...
Python3
2022-06-02
0
261
题解 | #矩阵相等判定#
#2022/6/2 n,m=map(int,input().split()) lis=[] lis1=[] for i in range(n): val=list(map(int,input().split())) lis.append(val...
Python3
2022-06-02
0
244
题解 | #矩阵元素定位#
#2022/6/2 #二位数组求值 n,m=map(int,input().split()) val=[] for i in range(n): val1=list(map(int,input().split())) val.append(va...
Python3
2022-06-02
0
239
题解 | #班级成绩输入输出#
#一个笨方法,憋笑 n1=list(map(float,input().split())) n2=list(map(float,input().split())) n3=list(map(float,input().split())) n4=list(map(float,input().split(...
Python3
2022-06-02
2
225
题解 | #序列中整数去重#
#2022/6/1 21:14 n=int(input()) #5 n1=list(map(int,input().split()))#10 12 93 12 75 #思路一:set集合去重,但是集合无序,所以运行结果报错 # print(' '.join(str(i) for i in set(n...
Python3
2022-06-01
0
229
题解 | #序列中删除指定数字#
# 2022/6/1 #题理解错误,忽略了重复数 # n=int(input()) # n1=list(map(int,input().split())) # n2=int(input()) # if n2 in n1: # n1.remove(n2...
Python3
2022-06-01
0
230
题解 | #有序序列插入一个整数#
#2022/6/1 20:01 n1=int(input()) n2=list(map(int,input().split())) n3=int(input()) n2.append(n3) n2.sort() n4=" ".join(str(i) for i in n2) print(n4)
Python3
2022-06-01
0
215
题解 | #有序序列判断#
#2022/6/1 n=int(input()) N=list(map(int,input().split())) if N==sorted(N) or N==sorted(N,reverse=True): print("sorted") else: &nb...
Python3
2022-06-01
1
291
题解 | #有序序列合并#
#2022/6/1 n,m=map(int,input().split()) n1=list(map(int,input().split())) m1=list(map(int,input().split())) asc=n1+m1 asc.sort() asc1=' '.join(str(i) f...
Python3
2022-06-01
0
235
题解 | #争夺前五名#
#2022/6/1 n=int(input()) list_1=list(map(int,input().split())) list_2=list_1 list_2.sort(reverse=True) list_3=' '.join(str(i) for i in list_2[0:5]) pr...
Python3
2022-06-01
0
187
首页
上一页
1
2
3
4
5
下一页
末页