tanglin3438
tanglin3438
全部文章
题解
读书笔记(1)
归档
标签
去牛客网
登录
/
注册
tanglin3438的博客
全部文章
/ 题解
(共62篇)
题解 | #二维数组操作#
while True: try: m, n = map(int, input().split()) x1,y1,x2,y2 = map(int, input().split()) swapX = int(input()) swa...
Python3
字符串
数组
2022-05-01
1
648
题解 | #统计字符#
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: List1Count = int(input()) List1 = input().split() if len(List1) != List1Count: print("数组1的长度和...
Python3
数组
2022-04-20
1
341
题解 | #字符串字符匹配#
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
260
题解 | #输入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
题解 | #求小球落地5次后所经历的路程和第5次反弹的高度#
while True: try: Hight = int(input()) # 第一次落下的高度 N = 1 # 球谈起的次数 Maxs = 5 NewHight = Hight # 每次落下时的新高度 ...
Python3
数学
2022-04-19
1
340
题解 | #图片整理#
while True: try: strs = input() if 1 <= len(strs) <= 1000: List = sorted(strs) # sorted函数,默认就是按ASSIC码进行排序的,只不...
Python3
字符串
数组
2022-04-19
0
270
首页
上一页
1
2
3
4
5
6
7
下一页
末页