• 2023-11-05Ozon Tech Challenge 2020 (Div.1 + Div.2, Rated, T-shirts + prizes!) B. Kuroni and Simple Strings
    Problem-1305B-Codeforces 啦啦啦,这题题目有点长,概括一下就是,希望将所有()匹配的括号去掉问你需要操作多少次 双指针,一个i一个j,从前往后记录匹配的括号如果发现:1.括号匹配2.i<jok,就放入ans (⊙o⊙)…,最后记得sort一遍ans,第一遍因为这个wa了一发 #include
  • 2023-04-26poj 2584 T-Shirt Gumbo 二分匹配
    T-ShirtGumboTimeLimit: 1000MS MemoryLimit: 65536KTotalSubmissions: 2935 Accepted: 1376DescriptionBoudreauxandThibodeauxarestudentvolunteersforthisyear'sACMSouthCentralRegion'sprogrammingcontest.Oneoftheirdutiesis
  • 2023-02-09[CF702F] T-shirts
    T-Shirts题目描述Thebigconsignmentoft-shirtsgoesonsaleintheshopbeforethebeginningofthespring.Inall$n$typesoft-shirtsgoonsale.Thet
  • 2022-12-10CF702F T-Shirts
    \(\mathcalLink\)可以发现,所选物品的优先级是固定的,因此考虑先对物品排序。发现难以优化对单个人的处理,由于询问不相互影响,因此考虑离线处理所有询问。每加入一件物品,