
贪心
bupt_xycr
欢迎关注我的公众号:算法入门
熟悉
c++
caffe
pytorch
mxnet
tensorflow
深度学习
自动驾驶
点云
图像处理
编程比赛
python
java
展开
-
HDU 5360 Hiking
http://fengweiding.blog.163.com/HikingTime Limit: 6000/3000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 431 Accepted Submission(s): 236Special JudgeProblem D原创 2016-04-21 19:03:53 · 356 阅读 · 0 评论 -
CF 280C. Vanya and Exams(div2)
http://codeforces.com/contest/492/problem/CVanya wants to pass n exams and get the academic scholarship. He will get the scholarship if the average grade mark for all the exams is at least avg. The ex原创 2016-04-21 18:57:59 · 353 阅读 · 0 评论 -
FatMouse\' Trade -HUD1009
http://acm.hdu.edu.cn/showproblem.php?pid=1009这题J[i]是可以分割的所以是一道贪心题。话说这道题我wrong了好几次才过。~第一次看没注意J[i] F[i]都应该是double 类型的。解题思路:贪心。先排序然后 最先用 以最少的猫食换取取最多的JavaBean的那个组合。代码如下#include#include#include#include#i原创 2016-04-21 18:53:48 · 355 阅读 · 0 评论 -
最少拦截系统
http://vjudge.net/contest/view.action?cid=50286#problem/M值得注意的是如果要拦截后面的导弹,应尽量用之前用过的防御能力最小的系统拦截。贪心。#include#include#include#include#include#include#include#include#include#include#include#include #incl原创 2016-04-21 18:53:32 · 283 阅读 · 0 评论 -
HDU1789 Doing Homework again(贪心)
http://acm.hdu.edu.cn/showproblem.php?pid=1789题目大意:在给定的作业扣分和截止时间中找出最少的扣分。解题思路:由贪心原则,现将数据排序,即按照所扣分数最大->最小排序(如果分数相同则按照截止日期从小到大排序)(cmp()),接下来从1->n 然后按顺序,从截止日期开始往前找没有占用掉的时间。如果找不到了,则加到罚分里面#include#include#原创 2016-04-21 18:52:54 · 328 阅读 · 0 评论