牛客网一些简单的题型
for i in range(5):
scores = [float(i) for i in input().split()]
s =0
for i in range(5):
print(scores[i], end=" ")
s +=scores[i]
print(s)
# while True:
# try:
# a = list(map(float,input().split()))
# for i in a:
# print('{:.1f}'.format(i),end=" ")
# print('{:.1f}'.format(sum(a)))
# except:
# break
二维矩阵:自己用代码貌似还不熟练
在leetcoad上面这些题目也挺多的
- 283 Move Zeroes (Easy)
- 566 Reshape the Matrix (Easy)
- 485 Max Consecutive Ones (Easy)
- 240 Search a 2D Matrix II (Medium)
- 378 Kth Smallest Element in a Sorted Matrix ((Medium))
- 645 Set Mismatch (Easy)
- 287 Find the Duplicate Number (Medium)
- 667 Beautiful Arrangement II (Medium)
- 697 Degree of an Array (Easy)
- 766 Toeplitz Matrix (Easy)
- 565 Array Nesting (Medium)
- 769 Max Chunks To Make Sorted (Medium)