上一页 1 2 3 4 5 6 ··· 9 下一页
摘要: 2020 Multi-University Training Contest 2 1001 Total Eclipse 思路:最后删除的是最大的点,则按从大到小排序,每次加入点,先判断其相邻点是否已加入,有就合并,每次的贡献是已加入点个数*相邻点权的差值 AC代码 #include <algorit 阅读全文
posted @ 2020-07-27 21:26 Misuchii 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 2020 Multi-University Training Contest 1 1004 Distinct Sub-palindromes __思路:思维题 $n<4$时,\(ans=26^n\);$n\ge4$时,\(ans=26*25*24\) __ AC代码 #include <algori 阅读全文
posted @ 2020-07-25 22:16 Misuchii 阅读(193) 评论(0) 推荐(0) 编辑
摘要: __ "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 阅读全文
posted @ 2020-03-13 11:59 Misuchii 阅读(184) 评论(0) 推荐(0) 编辑
摘要: __ "ICPC North Central NA Contest 2017" __ __ "C. Urban Design" __ __思路:用直线的一般式判断两直线相交 通过奇偶性判断是否在同一区域__ AC代码 阅读全文
posted @ 2020-03-13 11:58 Misuchii 阅读(202) 评论(0) 推荐(0) 编辑
摘要: __ "UCF Local Programming Contest 2015" __ __ "A. Find the Twins" __ __思路:水题__ AC代码 阅读全文
posted @ 2020-03-13 11:57 Misuchii 阅读(216) 评论(0) 推荐(0) 编辑
摘要: __ "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 阅读全文
posted @ 2020-03-13 11:55 Misuchii 阅读(199) 评论(0) 推荐(0) 编辑
摘要: __ "2020 CDUT寒假集训第一场(思维+dp专场)" __ __ "A Vasya and Golden Ticket" __ __思路:暴力__ AC代码 阅读全文
posted @ 2020-03-13 11:52 Misuchii 阅读(162) 评论(0) 推荐(0) 编辑
摘要: __ "Codeforces Round 603 (Div. 2)" __ __ "A. Sweet Problem" __ __思路:水题 当时有点降智 贡献一发wa__ AC代码 阅读全文
posted @ 2019-12-04 15:51 Misuchii 阅读(192) 评论(0) 推荐(0) 编辑
摘要: __ "Educational Codeforces Round 77 (Rated for Div. 2)" __ __ "A. Heating" __ __思路:水题__ AC代码 阅读全文
posted @ 2019-12-01 11:40 Misuchii 阅读(177) 评论(0) 推荐(0) 编辑
摘要: __ "Codeforces Round 585 (Div. 2)" __ __ "A. Yellow Cards" __ __思路:水题__ AC代码 阅读全文
posted @ 2019-11-26 12:20 Misuchii 阅读(123) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 9 下一页