牛客939492338号
牛客939492338号
全部文章
分类
题解(4)
归档
标签
去牛客网
登录
/
注册
牛客939492338号的博客
全部文章
(共4篇)
题解 | #求解立方根#
a=float(input()) b=int(1000000*a) if a>=0 else int(-1000000*a) flag=True n1=0 n2=b while flag: &...
Python3
2022-05-14
0
164
题解 | #表示数字#
s=input() arr=[] for i,v in enumerate(s): if i==0: if ...
Python3
2022-05-14
0
133
题解 | #公共子串计算#
s1=input() s2=input() a= s1 if len(s1)>len(s2) else s2 b=s2 if len(s1)>len(s2) else s1#长度较小的 flag=...
Python3
2022-05-13
0
142
题解 | #字符统计#
from collections import Counter o=Counter(input()) s=[[i,o[i]] for i in o] s.sort(key=lambda item:(-item[1],item[0])) for i in s: print(...
Python3
2022-05-13
0
123