柚茶_Rola
柚茶_Rola
全部文章
分类
归档
标签
去牛客网
登录
/
注册
柚茶_Rola的博客
全部文章
(共451篇)
题解 | #数据分类处理#
# 20240903 # wujie # 找出R列表中的每个数字在I列表中的出现情况 I = input().split(" ")[1:] R = input().split(" ")[1:] # print(I) # print(R) t = list(m...
2024-09-03
0
88
题解 | #简单错误记录#
err_ls = [] err_c = [] while True: try: s = input().split('\\')[-1] # \cqzlyaszjvlsjmkwoqijggmybr 645 e = s.split(' ') er...
2024-09-03
0
104
题解 | #明明的随机数#
while True: try: N = int(input()) ls = [] for i in range(N): ls.append(int(input())) ls1 = list(set(ls...
2024-09-02
0
71
题解 | #求最大连续bit数#
n = int(input()) b = bin(n)[2:] ls = sorted(set(b.split('0')),key=lambda x:len(x)) print(len(ls[-1]))
2024-06-23
0
130
题解 | #最长回文子串#
s = input() ls = [] for i in range(len(s)): for j in range(i+1,len(s)): if (s[i:j+1] == s[i:j+1][::-1]): ls.append(j+1-i) prin...
2024-06-23
0
120
题解 | #统计大写字母个数#
s = input() c = 0 for i in s: if i.isupper(): c += 1 print(c)
2024-06-23
0
131
题解 | #二维数组操作#
while True: try: m, n = map(int, input().split()) x1, y1, x2, y2 = map(int, input().split()) x = int(input()) y = ...
2024-06-23
0
179
题解 | #字符串字符匹配#
while True: try: s1 = input().lower() s2 = input().lower() if len(s1) > len(s2): s1,s2 = s2,s1 if s...
2024-06-23
0
176
题解 | #整型数组合并#
n1 = int(input()) ls1 = list(map(int,input().split())) n2 = int(input()) ls2 = list(map(int,input().split())) ls3 = ls1 + ls2 ls4 = list(set(ls3)) ls4...
2024-06-23
0
137
题解 | #尼科彻斯定理#
m = int(input()) ls = [] # 先利用等差数列的相关知识,求出首项和某项 for i in range(m*m-m+1,m*m+m): if i%2 == 1: ls.append(str(i)) print('+'.join(ls))
2024-06-23
0
145
首页
上一页
21
22
23
24
25
26
27
28
29
30
下一页
末页