marvlle
marvlle
全部文章
分类
题解(4)
归档
标签
去牛客网
登录
/
注册
marvlle的博客
全部文章
(共4篇)
py3解法
while 1: try: s=input() flag=0 # 标识,处理不存在的情况 for i in s: if s.count(i)==1: # 当遇到i在s中出现次数为1时跳出 ...
2021-04-04
1
573
py3动态规划解法
while 1: try: s1 = '#'+input() s2 = '#'+input() m1, m2 = len(s1), len(s2) # 用一个占位符表示字符串的开头 l = [[0 for i i...
2021-04-04
0
553
python3进制转换
while True: try: n=input() m={'0':0,'1':1,'2':2,'3':3,'4':4,'5':5,'6':6,'7':7,'8':8,'9':9,'A':10,'B':11,'C':12,'D':13,'E':14,'F':1...
2021-03-27
0
507
python3 字符串分割
while try 用于接受多行输入,对每一行输入进行处理 while True: try: s=input() # bad case 跳过空 if s=='': continue m=len(s)%8...
2021-03-27
0
411