Tyler and Strings(组合数学,树状数组维护前缀和)(Codeforces Round #775 (Div. 1, based on Moscow Open Olympiad i)
对我来说比较困难的一题了,尝试着自己写了一下,调不出来遂放弃.CodeforcesRound#775(Div.1,basedonMoscowOpenOlympiadinInformatics)https://codeforces.com/contest/1648/problem/CC.TylerandStrings题意:给你字符串s,ts,ts,t,你可以对sss任意排序,问你有多少种方案使得ss