lostmarshmallow
lostmarshmallow
全部文章
分类
归档
标签
去牛客网
登录
/
注册
lostmarshmallow的博客
全部文章
(共4篇)
题解 | 字符串排序
import sys cou = input() index = 0 numList = [] index1 = 0 while index < int(cou): numList1 = [] str = input() strList = list(str) ...
2025-03-10
0
24
题解 | 一封奇怪的信
arg = input() arg1 = input() argList = arg.split() arg1List = list(arg1) engList = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p',...
2025-03-10
0
27
题解 | 迷路的牛牛
num = input() direc = input() direcList = list(direc) direction = 0 for dire in direcList: if dire == 'L': direction -= 1 elif dire ==...
2025-03-10
0
25
题解 | 小易喜欢的单词
import sys str = input() if str.isupper(): pass else: print("Dislikes") sys.exit() strList = list(str) try: for index in r...
2025-03-10
0
24