- 2024-07-12Arpa’s overnight party and Mehrdad’s silent entering
Arpa’sovernightpartyandMehrdad’ssilententering题目大意给\(n\)对情侣染色,要求情侣不能然相同颜色而且相邻\(3\)人的颜色不同,求合法方案。数据范围满足\(1\len\le10^5\)。思路钦定\(2i-1\)与\(2i\)的人吃的食物不一样,那么这样建图跑出来的一定是二分图
- 2024-02-09CF741E Arpa’s abnormal DNA and Mehrdad’s deep interest
我永远喜欢数据结构。感觉\(\color{maroon}*3400\)虚高,但是第一眼不会做/ng。太菜了。CF洛谷给出两个字符串\(s,t\),记\(r_i\)表示在\(s_i\)和\(s_{i+1}\)插入\(t\)得到的字符串。若\(i=0\)表示在开头插入,若\(i=|s|\)表示在结尾插入。形式化的,\(r_i=\ov
- 2024-01-18题解 CF741E Arpa’s abnormal DNA and Mehrdad’s deep interest
CF741EArpa’sabnormalDNAandMehrdad’sdeepinterest记\(R_{i}\)表示把\(T\)插入在\(S\)的第\(i\)位后组成的字符串。有\(q\)组询问,给定\((x,y,l,r)\),求\(\min_{i}R_{i},({i\in[l,r],i\%k\in[x,y]})\)。一个暴力的想法是先把\(R_{i}\)的排名求出来,这显
- 2023-06-12Codeforces Round #383 (Div. 2)-D. Arpa's weak amphitheater and Mehrdad's valuable Hoses
原题链接D.Arpa'sweakamphitheaterandMehrdad'svaluableHosestimelimitpertestmemorylimitpertestinputoutputJusttoremind,girlsinArpa'slandarereallynice.wi andsomebeauty bi.
- 2023-06-12Codeforces Round #383 (Div. 2)-C. Arpa's loud Owf and Mehrdad's evil plan
原题链接C.Arpa'sloudOwfandMehrdad'sevilplantimelimitpertestmemorylimitpertestinputoutputAsyouhavenoticed,therearelovelygirlsinArpa’sland.1 to n.Everyonehasexactlyonecru
- 2022-10-25CF741D Arpa’s letter-marked tree and Mehrdad’s Dokhtar-kosh paths
CF741DArpa’sletter-markedtreeandMehrdad’sDokhtar-koshpaths给定一颗以\(1\)为根的树每个节点上有一个\(a\simv\)的小写字母,求每个子树内最长的链的长度
- 2022-10-11CF741D Arpa’s letter-marked tree and Mehrdad’s Dokhtar-kosh paths
CF741DArpa’sletter-markedtreeandMehrdad’sDokhtar-koshpaths给定一颗以\(1\)为根的树每个节点上有一个\(a\simv\)的小写字母,求每个子树内最长的链的长度