andre_joy

导航

2012年7月19日

hdu 4302

摘要: 地址:http://acm.hdu.edu.cn/showproblem.php?pid=4302题意:虫子吃蛋糕,总是吃最近的,如果一样近,按之前顺序吃。mark:wa了无数次啊,,最后终于找到错误了,队列没有清空。。。 第一次用这种queue的库函数写,比较生涩,不过最后ac了,挺高兴的~代码:#include <queue>#include <iostream>#define LL __int64using namespace std;struct cmp{ bool operator()(LL a, LL b) { return a > b; }}... 阅读全文

posted @ 2012-07-19 23:01 andre_joy 阅读(227) 评论(0) 推荐(0) 编辑