![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
PKU
文章平均质量分 76
哼着小曲装13
这个作者很懒,什么都没留下…
展开
-
poj 3259 最短路
2014/12/11 吓我一跳,还以为连最短路都不会敲了。 debug发现输入弄错了 : for(int i =0 ;i < m; i++) { scanf("%d%d%d",&a,&b,&c); s[a][b] = Min(c,s[a][b]); s[b][a] = Min(c,原创 2014-12-11 03:00:35 · 542 阅读 · 0 评论 -
poj 1753
20174/12/8 太懒了,那几个比赛补完后就不知道刷什么题了。算法也不知道学什么。。 就开个系列吧。-。-跟着前人的脚步走。 PS: 12点多开始撸这第一题。。 第一眼看错题意 :Each round you flip 3 to 5 pieces 。。还以为只能翻转3-5个棋子。。。托托的写了发暴力。。 神奇的是样例过了0 0(暴力代码已经出成题目,请党和人民放心)原创 2014-12-08 03:54:20 · 511 阅读 · 0 评论 -
poj 1328
2014/12/10 太渣,错了很多次。。贪心贪吧,贪吧。 一个个遍历算半径会有精度问题,要一开始就算出点的所在的左右半径中心。。 #include #include #include #include using namespace std; double d; struct node{ double l,r; }s[1005]; int cmp(node a,node原创 2014-12-10 03:50:48 · 573 阅读 · 0 评论 -
poj 2586
2014/12/10 贪心很水,题目很难。 英语二级。 关键在于他的一年内每5个月报表, 5月份报:1-5月的,6月份:报2-6月的.......所以一共有八次。。。次次亏损,让你求总盈利最大。如果总盈利为负,则输出Def #include #include int s[15]; int main() { int n, d; while(~scanf("%d%d",原创 2014-12-10 16:36:46 · 528 阅读 · 0 评论 -
poj 2109
2014/12/10 我又需要拯救了。。= =简直不能好好玩这个游戏。 两份差不多的代码。 第一份C++能过,G++WA。。 #include #include #include using namespace std; int main() { double n,p; while(scanf("%lf%lf",&n,&p)!=EOF)原创 2014-12-10 04:09:19 · 574 阅读 · 0 评论