• 2024-03-17Navigation System(djkstra,反向建图,思维)
    ThemapofBertowncanberepresentedasasetof nn intersections,numberedfrom 11 to nn andconnectedby mm one-wayroads.Itispossibletomovealongtheroadsfromanyintersectiontoanyotherintersection.Thelengthofsomepathfromonei
  • 2023-06-12Codeforces Round #375 (Div. 2)-C. Polycarp at the Radio
    原题链接C.PolycarpattheRadiotimelimitpertestmemorylimitpertestinputoutputa1, a2, ..., an,where ai isaband,whichperformsthe i-thsong.Polycarplikesbandswiththenumbersfrom 1 to 
  • 2022-11-22Codeforces864B-Polycarp and Letters
    PolycarpandLettersPolycarploveslowercaselettersanddislikesuppercaseones.Oncehegotastring sconsistingonlyoflowercaseanduppercaseLatinlet
  • 2022-11-21 Playlist for Polycarp (hard version)
    本题显然只需要知道\(typ=1/2/3\)的歌的数量分别为什么就可以求出答案了。先随便求一下\(f_{i,j,k}\)表示取\(i\)个\(1\),\(j\)个\(2\),\(k\)个\(3\)的贡献
  • 2022-11-032022.11.2每日一题
    DaimayuanOnlineJudge-整齐的数组题目描述\(Polycarp\)有一个长度为\(n\)的数组\(a_1,a_2,...,a_n\)(\(n\)是偶数)。\(Polycarp\)还得到了一个正整数\(k\),他开
  • 2022-09-22Polycarp Writes a String from Memory CodeForces - 1702B
    PolycarpWritesaStringfromMemoryCodeForces-1702B给定大小为n的字符串,至多每3种不同的字母分为一组,最少将字符串分为多少组?Input第一行输入数据包含一个整