柚茶_Rola
柚茶_Rola
全部文章
分类
归档
标签
去牛客网
登录
/
注册
柚茶_Rola的博客
全部文章
(共451篇)
题解 | #字符串合并处理#
# 2024年11月5日 周二 上午11:54 # wujie s1, s2 = input().split() s = s1 + s2 s3 = "" s4 = "" for i in range(len(s)): if i % 2 ==...
2024-11-05
0
48
题解 | #数据分类处理#
# 15 123 456 786 453 46 7 5 3 665 453456 745 456 786 453 123 # 5 6 3 6 3 0 I = input().split()[1:] R = input().split()[1:] R = list(map(int,set(R))) ...
2024-11-05
0
40
题解 | #简单错误记录#
ls = [] c = [] while True: try: s1 = input().split('\\')[-1] s2 = s1.split() s3 = s2[0][-16:] s4 = s2[1] e...
2024-11-05
0
34
题解 | #明明的随机数#
N = int(input()) nums = [] for i in range(N): nums.append(int(input())) #print(nums) ls = list(set(nums)) ls.sort() for i in ls: print(i)
2024-11-04
0
37
题解 | #字符串通配符#
# 2024年11月1日 周五 下午15:51 s1 = input() s2 = input() m = len(s1) n = len(s2) dp = [[False for j in range(n + 1)] for i in range(m + 1)] dp[0][0] = Tr...
2024-11-01
0
36
题解 | #字符串通配符#
s1 = input() s2 = input() m = len(s1) n = len(s2) dp = [[False for j in range(n + 1)] for i in range(m + 1)] dp[0][0] = True # 处理第0行() for j in range(...
2024-11-01
0
36
题解 | #在字符串中找出连续最长的数字串#
# 2024年11月1日 周五 下午14:16 while True: try: s = input() for i in s: if not i.isdigit(): s = s.replac...
2024-11-01
0
51
题解 | #参数解析#
# 2024年10月31日 周四 下午14:42 # xcopy /s c:\\ d:\\e # xcopy /s "C:\\program files" "d:\" s = input() ls = [] if '"' not in s...
2024-10-31
0
36
题解 | #矩阵乘法计算量估算#
# 2024年10月31日 周四 上午11:36 """ 3 50 10 10 20 20 5 (A(BC)) """ n = int(input()) # 要计算乘法的矩阵个数n ls = [] for i in range(n...
2024-10-31
0
59
题解 | #矩阵乘法#
x = int(input()) # 第一行包含一个正整数x,代表第一个矩阵的行数 y = int(input()) # 第二行包含一个正整数y,代表第一个矩阵的列数和第二个矩阵的行数 z = int(input()) # 第三行包含一个正整数z,代表第二个矩阵的列数 A = [] B = [...
2024-10-31
0
36
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页