柚茶_Rola
柚茶_Rola
全部文章
分类
归档
标签
去牛客网
登录
/
注册
柚茶_Rola的博客
全部文章
(共451篇)
题解 | #合法IP#
# 2024年10月8日 def f(x): if len(x) != 4: return False else: for i in x: if not i.isdigit(): return F...
2024-10-08
0
74
题解 | #扑克牌大小#
# 2024年9月27日 def f(c): #炸弹 if len(c) == 4 and len(set(c)) == 1: return True return False d = { '3':3, '4':4, ...
2024-09-27
0
76
题解 | #求最大连续bit数#
# 20240926 # wujie n = int(input()) b = bin(n)[2:].split('0') #print(b) ls = [] for i in b: ls.append(len(i)) print(max(ls))
2024-09-26
0
46
题解 | #最长回文子串#
# 20240926 s = input().lower() p = 0 for i in range(len(s)): for j in range(i+1,len(s)+1): if s[i:j] == s[i:j][::-1] and j-i > p: ...
2024-09-26
0
58
题解 | #统计大写字母个数#
# 20240926 while True: try: s = input() c = 0 for i in s: if i.isupper(): c += 1 pri...
2024-09-26
0
65
题解 | #二维数组操作#
# 2024年9月26日 # 输入的坐标都是编号,最大值是m-1或者n-1 while True: try: m,n = list(map(int,input().split())) x1,y1,x2,y2 = list(map(int,input().spl...
2024-09-26
0
85
题解 | #将真分数分解为埃及分数#
# 2024年9月25日 while True: try: s = input().split('/') a = int(s[0])*10 b = int(s[1])*10 #print(a,b) ls = []...
2024-09-26
0
72
题解 | #字符串字符匹配#
# 20240925 while True: try: s1 = input().lower() s2 = input().lower() if len(s1) > len(s2): s1,s2 = s2,s1 ...
2024-09-25
0
174
题解 | #整型数组合并#
# 20240925 n1 = int(input()) ls1 = list(map(int,input().split())) n2 = int(input()) ls2 = list(map(int,input().split())) ls3 = ls1 + ls2 ls4 = list(se...
2024-09-25
0
83
题解 | #火车进站#
# 2024年9月25日 ls = [] def f(wait,stack,out): # 找到所有的出站方案 if not wait and not stack: ls.append(' '.join(map(str,out))) if wait: ...
2024-09-25
0
88
首页
上一页
11
12
13
14
15
16
17
18
19
20
下一页
末页