努力ing
你浪费的今天是昨天死去的人所渴望的明天!!!
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1070#include<iostream>#include<string>#include<algorithm>#include<vector>using namespace std;struct node { string str; int m; int v; int day; double s;};double cmp(node& x,node& y){ if(x.s!=y.s) return x.s<y.s; else return 阅读全文
posted @ 2013-05-27 17:37 努力ing 阅读(154) 评论(0) 推荐(0)
摘要: bfs 的题目http://acm.hdu.edu.cn/showproblem.php?pid=1372题目简述:一个8*8的棋盘,输入两点,求马从第一点到第二点所需要的最少步数Inpute2e4a1b2b2c3OutputTogetfrome2toe4takes2knightmoves.Togetfroma1tob2takes4knightmoves.Togetfromb2toc3takes2knightmoves.代码:#include<iostream>#include<queue>using namespace std;int map[10][10];int 阅读全文
posted @ 2013-05-27 09:01 努力ing 阅读(139) 评论(0) 推荐(0)