12 2020 档案

摘要:A. Favorite Sequence 思路:照着模拟即可。 view code #include<iostream> #include<string> #include<algorithm> #include<cstdio> #include<cstring> #include<cmath> # 阅读全文
posted @ 2020-12-16 01:32 TL自动机 阅读(106) 评论(0) 推荐(0)
摘要:传送门 题意:有两个队伍,每队有n个人,每个人可以有s个普通技能和一个特殊技能。现在可以按照顺序抽技能卡,问各自都在最优策略下双方队伍的技能总分最大差值。 思路:算是一道看着简单但思路形成比较麻烦的一题。 首先因为贪心有后效性,排除贪心,考虑dp。 发现特殊技能每个人只能有一次,所以想着通过将每个队 阅读全文
posted @ 2020-12-09 14:14 TL自动机 阅读(165) 评论(0) 推荐(0)
摘要:A. Cancel the Trains 签到题,看两边有无相同相对位置出发的,加入计数即可。 view code #include<iostream> #include<string> #include<algorithm> #include<cstdio> #include<cstring> # 阅读全文
posted @ 2020-12-04 23:37 TL自动机 阅读(412) 评论(0) 推荐(0)

//鼠标点击特效第二种(小烟花)