熊猫INFJ
熊猫INFJ
全部文章
分类
归档
标签
去牛客网
登录
/
注册
熊猫INFJ的博客
全部文章
(共4篇)
题解 | 计算某字符出现次数
s=input() a=input() count=0 if a>='0' and a<='9': for w in s: if a==w: count+=1 else: for w in s: if a==w or...
2025-07-01
0
15
题解 | 字符串最后一个单词的长度
lis=input().split() print(len(lis[-1]))
2025-07-01
0
15
题解 | 字符串变形
class Solution: def trans(self , s: str, n: int) -> str: lst=s.strip('"').split(" ") lst.reverse() news=...
2025-07-01
0
15
题解 | 【模板】单源最短路2
from os import error from math import inf import heapq n,m=map(int,input().split(" ")) dic=dict() for i in range(1,m+1): u,v,w=map(int,i...
2025-07-01
0
17