柚茶_Rola
柚茶_Rola
全部文章
分类
归档
标签
去牛客网
登录
/
注册
柚茶_Rola的博客
全部文章
(共451篇)
题解 | #字符统计#
# 20241008 s = input() ss = sorted(set(s))# 先按字母表顺序排个序 sss = sorted(ss,key=lambda x:s.count(x),reverse=True)#再按出现次数高低排序 print(''.join(sss))
2024-10-08
0
35
题解 | #等差数列#
# 20241008 n = int(input()) print(int(2*n +n*(n-1)*3/2))
2024-10-08
0
53
题解 | #记负均正II#
# 20241008 ls = [] while True: try: ls.append(int(input())) except: break ls1 = [] ls2 = [] for i in ls: if i >= 0: ...
2024-10-08
0
45
题解 | #记负均正#
# 20241008 n = int(input()) ls = list(map(int,input().split())) ls1 = [] ls2 = [] for i in ls: if i > 0: ls1.append(i) elif i < ...
2024-10-08
0
44
题解 | #表示数字#
s = input() ans = "" char_pre = "" for i in s: if i.isdigit(): if not char_pre.isdigit(): ans += "*&q...
2024-10-08
0
55
题解 | #表示数字#
# 20241008 # Jkdi234klowe90a3 s = input() ans = '' char_pre = '' for i in s: if i.isdigit(): if not char_pre.isdigit(): ans...
2024-10-08
0
53
题解 | #记票统计#
# 20241008 n = int(input()) #候选人 ls = input().split() #候选人的名字 m = int(input()) #投票的人数 ls1 = input().split() #投票 c = 0 for i in...
2024-10-08
0
43
题解 | #在字符串中找出连续最长的数字串#
# 2024年10月8日 while True: try: s = input() for i in s: if not i.isdigit(): s = s.replace(i, " &quo...
2024-10-08
0
94
题解 | #走方格的方案数#
# 2024年10月8日 def f(x,y): if x < 0 or y < 0: return 0 elif x == 0 or y == 0: return 1 else: return f(x,y-1)+f...
2024-10-08
0
65
题解 | #合法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
45
首页
上一页
10
11
12
13
14
15
16
17
18
19
下一页
末页