2020牛客暑期多校训练营(第一场)F题

题目大意:有两串字符串,能够无限重复延长,比较他们的字典序大小。 解题思路:利用字符串长度最长为1e5,直接循环字符串暴力解决便可(关键加if(nu1= =aa&&nu2= =bb)) 代码以下:ios #include<iostream> #include<algorithm> #include<string> #include<cstring> using namespace std; typ
相关文章
相关标签/搜索