Codeforces Round #331 (Div. 2)
来源:互联网 发布:数码淘宝店铺简介 编辑:程序博客网 时间:2024/05/10 16:07
A题 给出不多于四个点,判断是否构成矩形,要求矩形的边与坐标轴平行。 没有想出好方法,但是觉得数据很小,于是暴力枚举出所有的可能情况,进行判断,比赛的时候判断错了一个条件,后来改对了。
B题 貌似以前做过类似的,给出一组初始化为零的数组,每次从第i个数向后进行加一或减一的操作,问最少经过几次能得到给出的数列。总之还算很简单,开始数据没考虑,改成long long就好了
C题 没做出来,时间不够了,后来补的。是个贪心问题,还算可以,前面两道浪费时间太多了。继续努力吧。
我看大神都在用stl,看来得学习学习。
1 0
- Codeforces Round #331 (Div. 2)
- Codeforces Round #331 (Div. 2)
- Codeforces Round #331 (Div. 2) (ABC题解)
- Codeforces Round #331 (Div. 2)【未完待续】
- Codeforces Round #102 (Div. 2)
- Codeforces Round #103 (Div. 2)
- Codeforces Round #103 (Div. 2)
- Codeforces Round #104 (Div. 2)
- Codeforces Round #105 (Div. 2)
- Codeforces Round #105 (Div. 2)
- Codeforces Round #107 (Div. 2)
- Codeforces Round #108 (Div. 2)
- Codeforces Round #110 (Div. 2)
- Codeforces Round #122 (Div. 2)
- Codeforces Round #121 (Div. 2)
- Codeforces Round #124 (Div. 2)
- Codeforces Round #124 (Div. 2)
- Codeforces Round #125 (Div. 2)
- 浅谈虚数i在电路分析中的作用
- bzoj 1853 幸运数字
- bzoj 2563 阿狸和桃子的游戏
- bzoj 1042 硬币购物
- bzoj 3198 spring
- Codeforces Round #331 (Div. 2)
- 看了zzb的安排
- bzoj 3622 已经没有什么好害怕的了
- bzoj 3589 动态树
- 主席树&树状数组套主席树
- 容斥原理
- bzoj 4004 装备购买
- bzoj 4031 小z的房间
- 嵌入式Linux应用程序常用到的几个函数