日不落拓海海
日不落拓海海
全部文章
分类
题解(58)
归档
标签
去牛客网
登录
/
注册
日不落拓海海的博客
全部文章
(共58篇)
题解 | #字符串排序#
while True: try: str_words = input() a= '' for word in str_words: if word.isalpha(): a+=word ...
Python3
2022-01-22
0
293
题解 | #删除字符串中出现次数最少的字符#
while True: try: words = list(map(str,input())) dic_words={} new_words = '' for word in words: if word...
Python3
2022-01-22
0
322
题解 | #字符串最后一个单词的长度#
while True: try: words = list(map(str,input().split())) print(len(words[-1])) except: break
Python3
2022-01-21
1
334
题解 | #MP3光标位置#
while True: try: n = int(input()) actions = input() songs = [i for i in range(1,n+1)] new_songs =[] maus_p...
Python3
2022-01-21
0
341
题解- 数组 | #矩阵乘法#
while True: try: x = int(input()) y = int(input()) z = int(input()) x_y = [[0 for i in range(y)] for j in range(x)...
Python3
2022-01-21
0
420
题解 | #输入n个整数,输出其中最小的k个#
while True: try: n,k = map(int,input().split()) arr = map(int,input().split()) string = " ".join(map(str,sorted(arr)[0:k])...
Python3
2021-12-28
0
281
题解 | #合并表记录#
while True: try: num = int(input()) dic = {} for j in range(num): key,value = map(int,input().split()) if key in dic: ...
Python3
数组
2021-12-27
2
520
题解 | #整型数组合并#
while True: try: num1 = int(input()) arr1 = list(map(int, input().split())) num2 = int(input()) arr2 = list(map(in...
Python3
2021-12-27
0
401
首页
上一页
1
2
3
4
5
6
下一页
末页