2020牛客暑期多校訓練營(第一場)F題

題目大意:有兩串字符串,能夠無限重複延長,比較他們的字典序大小。 解題思路:利用字符串長度最長爲1e5,直接循環字符串暴力解決便可(關鍵加if(nu1= =aa&&nu2= =bb)) 代碼以下:ios #include<iostream> #include<algorithm> #include<string> #include<cstring> using namespace std; typ
相關文章
相關標籤/搜索