卡啦啦啦
卡啦啦啦
全部文章
分类
归档
标签
去牛客网
登录
/
注册
卡啦啦啦的博客
全部文章
(共45篇)
题解 | #成绩排序#
""" while True: try: n = int(input()) sort_type = int(input()) lst = [] for _ in range(n): ...
2024-10-04
0
135
题解 | #在字符串中找出连续最长的数字串#
while True: try: s = input() childs = "" for c in s: if ord("0") <= ord(c) <= ord(&q...
2024-10-04
0
152
题解 | #合法IP#
while True: try: ip_lst = list(input().split(".")) a = 0 for i in ip_lst: if i.isdigit() and 0 <=...
2024-10-04
0
83
题解 | #参数解析#
while True: try: s = input().strip() len_s = len(s) lst = [] cmd_lst = [] count = 1 for i in s: ...
2024-10-04
0
140
题解 | #找出字符串中第一个只出现一次的字符#
while True: try: s = input().strip() dic = {} for x in set(s): dic[x] = s.count(x) # print(dic) ...
2024-10-04
0
88
题解 | #高精度整数加法#
while True: try: l_str = input() s_str = input() if len(l_str) < len(s_str): l_str, s_str = s_str, l_str ...
2024-10-04
0
92
题解 | #名字的漂亮度#
while True: try: n = int(input()) m = [] for _ in range(n): m.append(input()) for x in m: ...
2024-10-04
0
147
题解 | #密码截取#
s = input() # 奇数类型:ABA # 偶数类型:ABBA max_len = 1 # 奇数 for i in range(len(s)): left, right = i, i while left >= 0 and right < len(s) and s[...
2024-10-04
0
134
题解 | #密码强度等级#
import sys def get_len_score(str1: str) -> int: str_len: int = len(str1) score: int = 0 if str_len <= 4: score = 5 eli...
2024-10-02
0
140
题解 | #字符统计#
import sys for line in sys.stdin: dic: dict = {} for x in line.strip("\n"): if x not in dic.keys(): dic[x] = 1 ...
2024-10-02
0
117
首页
上一页
1
2
3
4
5
下一页
末页