摘要:
2020 Multi-University Training Contest 2 1001 Total Eclipse 思路:最后删除的是最大的点,则按从大到小排序,每次加入点,先判断其相邻点是否已加入,有就合并,每次的贡献是已加入点个数*相邻点权的差值 AC代码 #include <algorit 阅读全文
摘要:
2020 Multi-University Training Contest 1 1004 Distinct Sub-palindromes __思路:思维题 $n<4$时,\(ans=26^n\);$n\ge4$时,\(ans=26*25*24\) __ AC代码 #include <algori 阅读全文
摘要:
__ "UCF Local Programming Contest 2012(Practice)" __ __ "A. Wall Street Monopoly" __ __思路:$cost = cost[i][j]+cost[j+1][j+i]+100 min(len[j][j],dep[j][j 阅读全文
摘要:
__ "ICPC North Central NA Contest 2017" __ __ "C. Urban Design" __ __思路:用直线的一般式判断两直线相交 通过奇偶性判断是否在同一区域__ AC代码 阅读全文
摘要:
__ "UCF Local Programming Contest 2015" __ __ "A. Find the Twins" __ __思路:水题__ AC代码 阅读全文
摘要:
__ "CTU Open Contest 2019" __ __ "A. Beer Barrels" __ __思路:$ans=\sum_{i=0}^k{i C(k,i)}$ 注意$a!=c \&\& b!=c$还有$(a==c \&\& b==c)$的情况__ AC代码 __ "F. Beer M 阅读全文
摘要:
__ "2020 CDUT寒假集训第一场(思维+dp专场)" __ __ "A Vasya and Golden Ticket" __ __思路:暴力__ AC代码 阅读全文
摘要:
__ "Codeforces Round 603 (Div. 2)" __ __ "A. Sweet Problem" __ __思路:水题 当时有点降智 贡献一发wa__ AC代码 阅读全文
摘要:
__ "Educational Codeforces Round 77 (Rated for Div. 2)" __ __ "A. Heating" __ __思路:水题__ AC代码 阅读全文
摘要:
__ "Codeforces Round 585 (Div. 2)" __ __ "A. Yellow Cards" __ __思路:水题__ AC代码 阅读全文