题解 2872: 字符环

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

2872: 字符环(暴力)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h> int main(){    int len_a,len_b,len,i,j,n,sum=0;  ……

2872: 字符环

摘要:解题思路:注意事项:参考代码:#include <stdlib.h> #include <stdio.h> #include <iostream> #include <string.h> us……

解 2872: 字符环

摘要:解题思路:注意事项:参考代码:a,b=input().strip().split()a = a + ab = b + bna = len(a)nb = len(b)c = 0if na < nb:  ……

java--study||O.o

摘要:参考代码:import java.util.Scanner; public class Main  { public static void main(String[] args)     ……

思路就是要连着一样所以要一直迭代

解题思路:注意事项:参考了c的写法用了好久参考代码:l=list(input().split())l1=l[0]+l[0]l2=l[1]+l[1]#之前都不会这个,原来可以这样搞la=len(l[0])lb=len(l[1])ans=0mn=min(la,