摘要:
这个题是下午老师出的比赛题,看了很久都不知道这个题到底是什么意思,晚上上网看了下,才知道是求每个字符串里的每一个字母后面有几个比它小的字母的总和,并对总和按照从小到大排列,题目数据量较小,直接循环就过《*——*》#include#include#includestruct node{ int x,y;}a[110];int cmp(const void *a,const void *b){ struct node *c,*d; c=(struct node *)a; d=(struct node *)b; if(c->y!=d->y) return c->x... 阅读全文
posted @ 2013-07-14 20:24
zlyblog
阅读(280)
评论(0)
推荐(0)
摘要:
题目需要对路径进行打表,记录路径很关键,从网上找的,基本都是通过记录当前点的来源方向来处理路径问题。自己写的不怎么滴,来自网上http://blog.csdn.net/ice_crazy/article/details/7763302博客这道题加深了对广搜优先队列的理解,很不错的一道题 1 #include 2 #include 3 #include 4 using namespace std; 5 6 struct node 7 { 8 int x,y; 9 int step; 10 friend bool operator=n||y=m) 25... 阅读全文
posted @ 2013-07-14 09:59
zlyblog
阅读(195)
评论(0)
推荐(0)

浙公网安备 33010602011771号