tanglin3438
tanglin3438
全部文章
题解
读书笔记(1)
归档
标签
去牛客网
登录
/
注册
tanglin3438的博客
全部文章
/ 题解
(共29篇)
题解 | #统计字符#
while True: try: strs = input() englishCount, SpaceCount, NumCount, OtherCount = 0, 0, 0, 0 for x in strs: if ...
Python3
字符串
2022-04-30
0
340
题解 | #字符串加解密#
NumsList = ["1","2","3","4","5","6","7","8","9","0"] UpperList = ['b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v',...
Python3
字符串
数组
2022-04-30
0
396
题解 | #密码强度等级#
def checkLens(strs:str) -> int: if not strs: return 0 lens = len(strs) if lens <= 4: return 5 elif 5 <= ...
Python3
字符串
2022-04-20
0
324
题解 | #字符串字符匹配#
while True: try: str1 = input() str2 = input() Flag = 0 for x in str1: if x not in str2: # 只要子串str2...
Python3
字符串
2022-04-20
0
219
题解 | #统计大写字母个数#
while True: try: strs = input() if 1 <= len(strs) <= 250: List = [] for x in strs: i...
Python3
字符串
数组
2022-04-20
0
261
题解 | #输入n个整数,输出其中最小的k个#
while True: try: List1 = input().split() List2 = input().split() # print(len(List2), List1[0]) if len(List2) != in...
Python3
字符串
2022-04-19
0
294
题解 | #图片整理#
while True: try: strs = input() if 1 <= len(strs) <= 1000: List = sorted(strs) # sorted函数,默认就是按ASSIC码进行排序的,只不...
Python3
字符串
数组
2022-04-19
0
270
题解 | #查找兄弟单词#
while True: try: Lists = input().split() # 按空格拆分为列表 InputCounts = int(Lists[0]) # 获取原列表的总数N #print(Lists, InputCounts)...
Python3
字符串
数组
2022-04-19
0
281
题解 | #学英语#
num1 = ['zero','one','two','three','four','five','six', 'seven','eight','nine','ten','eleven','twelve', 'thirteen','fourteen','fifteen',...
Python3
动态规划
字符串
2022-04-19
0
380
题解 | #字符串排序#
while True: try: strs = input() NewStr = "" # 先统计所有的大小写字母 for x in strs: if x.isalpha(): Ne...
Python3
字符串
2022-04-19
0
331
首页
上一页
1
2
3
下一页
末页