柚茶_Rola
柚茶_Rola
全部文章
分类
归档
标签
去牛客网
登录
/
注册
柚茶_Rola的博客
全部文章
(共451篇)
题解 | #句子逆序#
print(" ".join(reversed(input().split())))
2023-12-07
0
179
题解 | #字符串反转#
print(input()[::-1])
2023-12-07
0
279
题解 | #数字颠倒#
print("".join(reversed(input())))
2023-12-07
0
175
题解 | #字符个数统计#
def char_type_count(str): string = "".join(set(str)) # 去重之后连接成新的字符串 count = 0 for i in string: # 遍历string if 0 <= ...
2023-12-07
0
171
题解 | #合并表记录#
n = int(input()) # 输入键值对的个数 dic = {} # 创建一个空字典 for i in range(0,n): key,value = map(int,input().split()) dic[key] = dic.get(key,...
2023-12-06
0
199
题解 | #合并表记录#
n = int(input()) # 输入键值对的个数 dic = {} # 创建一个空字典 for i in range(0,n): key,value = map(int,input().split()) dic[key] = dic.get(key,...
2023-12-06
0
208
题解 | #合并表记录#
n = int(input()) # 输入键值对的个数 dic = {} # 创建一个空字典 for i in range(0,n): line = input().strip().split() key = int(line[0]) value ...
2023-12-06
0
169
题解 | #进制转换#
print(int(input(),16))
2023-12-06
0
166
题解 | #计算某字符出现次数#
from itertools import count str1 = input().upper() # 全部转成大写 str2 = input().upper()# 全部转成大写 print(str1.count(str2))# 调用count()方法
2023-12-06
0
153
题解 | #字符串最后一个单词的长度#
str = input().split() print(len(str[-1]))
2023-12-06
0
132
首页
上一页
37
38
39
40
41
42
43
44
45
46
下一页
末页