Codeforce Round #228 Div2
2014-02-13 05:35
351 查看
这次的A题没注意要到100- -,
B题没做,后来做要注意下1和long long
C题当时坑的一B,用了个蠢办法,后来还错了,现在改了,还是蠢办法,等等再去用dp吧,而且本来就只有01用个鸡巴的树状数组啊。。。
D题利用i+j的和去减掉i然后判断小于步数和n的最小值,初始化为1和步数-m+1的最大值就可以了在判断小于k次,方法比我原来的好xx倍- -
B题没做,后来做要注意下1和long long
C题当时坑的一B,用了个蠢办法,后来还错了,现在改了,还是蠢办法,等等再去用dp吧,而且本来就只有01用个鸡巴的树状数组啊。。。
D题利用i+j的和去减掉i然后判断小于步数和n的最小值,初始化为1和步数-m+1的最大值就可以了在判断小于k次,方法比我原来的好xx倍- -
相关文章推荐
- Codeforce Round 363(Div2)A(Java)
- Codeforce Round #211 Div2
- Codeforce Round #220 Div2
- Codeforce Round #224 Div2
- Codeforce Round #226 Div2
- Codeforces Round #228 (Div. 1) B
- CodeForce Round 219 Div2 E Watching Fireworks is Fun 单调队列DP
- Codeforces Round #228 (Div. 1) B. Fox and Minimal path
- codeforce Round #232 Div2 map + 质因子 +组合
- Codeforces Round #228 Div1 B Fox and Minimal path
- CodeForce Round 215 DIV2 C 使用了线段树 但是多此一举...
- CodeForce Round 258 div2
- CodeForce Round 257 div2
- Codeforces Round #228 (Div. 2) B Fox and Cross(DFS)
- Codeforce Round #382 (div 1) A
- Codeforces Round #278 (Div. 2) B. Candy Boxes [brute force+constructive algorithms]
- Codeforces Round #228 (Div. 1) A. Fox and Box Accumulation 贪心
- Codeforces Round #228 (Div. 1) A. Fox and Box Accumulation (贪心)
- Codeforce Round #222 Div2
- Codeforces Round #228 (Div. 2) A. Fox and Number Game