私信TA
用户名:yuncker
访问量:6785
签 名:
自我简介:
作者: bobby 发表时间:2021-03-15 17:33:07 浏览:118 | 评论:0
解题思路:注意事项:参考代码:
str1=list(input().strip()) str2=list(input().strip()) temp=[] result=0 for i in range(len(str1)): if str1[i]!=str2[i]: temp.append(i) if len(temp)==2: result+=temp[1]-temp[0] temp=[] print(result)
0.0分
0 人评分
看不懂代码?想转换其他语言的代码? 或者想问其他问题? 试试问问AI编程助手,随时响应你的问题:
编程语言转换
万能编程问答
代码解释器
代码纠错
SQL生成与解释