柚茶_Rola
柚茶_Rola
全部文章
分类
归档
标签
去牛客网
登录
/
注册
柚茶_Rola的博客
全部文章
(共451篇)
题解 | #高精度整数加法#
n1 = int(input()) n2 = int(input()) print(n1 + n2)
2024-01-29
0
144
题解 | #挑7#
n = int(input()) ccount = 0 for i in range(1,n+1): if i % 7 == 0: #1 i是7的倍数 ccount += 1 elif str(i).count('7') > 0: #2 i中...
2024-01-29
0
160
题解 | #挑7#
n = int(input()) ccount = 0 for i in range(1,n+1): if i % 7 == 0: ccount += 1 elif str(i).count('7') > 0: ccount += 1 pri...
2024-01-29
0
148
题解 | #四则运算#
s = input() s = s.replace('{','(') s = s.replace('}',')') s = s.replace('[','(') s = s.replace(']',')') print(int(eval(s)))
2024-01-27
0
130
题解 | #从单向链表中删除指定值的节点#
s = input().split() # 输入 N = int(s[0]) # 输入的第一个元素表示列表总的元素个数 ls =[] ls.append(s[1]) # 添加列表第一个元素 # 在第二个元素后面插入第一个元素 for i in range(1,N): ...
2024-01-27
0
146
题解 | #从单向链表中删除指定值的节点#
s = input().split() N = int(s[0]) ls =[] ls.append(s[1]) for i in range(1,N): v = s[2*i] pre = s[2*i + 1] ls.insert(ls.index(pre) + 1,v) ...
2024-01-27
0
141
题解 | #名字的漂亮度#
n = int(input()) # 输入字符串的行数 # 输入n行字符串 for _ in range(n): str = input().lower() beauty = 0 # 定义漂亮度 dic = {} # 定义字典,用来存...
2024-01-27
0
204
题解 | #称砝码#
n = int(input()) m = list(map(int,input().split())) x = list(map(int,input().split())) amount = [] weight = {0,} for i in range(n): for j in ran...
2024-01-17
0
174
题解 | #求小球落地5次后所经历的路程和第5次反弹的高度#
H1 = float(input()) H2 = H1 / 2 H3 = H2 / 2 H4 = H3 / 2 H5 = H4 / 2 H6 = H5 / 2 sum_h = H1 + 2 * (H2 + H3 + H4 + H5) print(sum_h) print(H6)
2024-01-15
0
151
题解 | #字符串加密#
key = input().lower() mingwen = input().lower() alpha = 'abcdefghijklmnopqrstuvwxyz' mimabiao = [] miwen = '' for i in key: if i not in mimabiao...
2024-01-15
0
162
首页
上一页
35
36
37
38
39
40
41
42
43
44
下一页
末页