数据库脚本
drop table crm_user_info;
drop table crm_work_customer_relation;
drop table crm_business;
drop table crm_travel;
drop table crm_contact_log;
drop table crm_order;
drop table crm_order_detail;
d...
分类:
数据库 时间:
2015-07-09 08:34:28
阅读次数:
154
题目大意:没什么好说的,稳定婚姻问题。
~
~
~解题思路:首先将所有的男的压入一次加入队列中,对于每一个男的ii,先出队,从他的喜欢顺序中依次寻找,如果有一个女tt的没有匹配或者对当前的匹配jj不如这个男的,那么就让i,ti,t匹配,然后将jj加入队列中,如果找不到的话就将ii重新加入队列中。
~
~
~AC代码:#include
#include <cs...
分类:
其他好文 时间:
2015-06-24 14:45:09
阅读次数:
119
Gas Station
There are N gas stations along a circular route, where the amount of gas at station i is gas[i].
You have a car with an unlimited gas tank and it costs cost[i] of gas to travel f...
分类:
其他好文 时间:
2015-06-22 11:09:12
阅读次数:
95
转:http://blog.dongliwei.cn/archives/uiview-tree-code// Recursively travel down the view tree, increasing the indentation level for children- (void)dum...
分类:
其他好文 时间:
2015-06-13 15:32:00
阅读次数:
100
描述:给定一张图(n0那么就可行k=6:思路大概相同,记链为x->u->p->q->v->y 枚举u,v记下所有可能的二元组p,q,记总数为tot,出现x的次数为Cx,然后在枚举x,y若tot-Cx-Cy+x,y是否为二元组>0,那么就可行k=7:依旧是考虑容斥,记链为x->u->p->z->q->...
分类:
其他好文 时间:
2015-06-12 00:24:45
阅读次数:
1259
1635: Restaurant RatingsTime Limit:1 SecMemory Limit:128 MBDescriptionA famous travel web site has designed a newrestaurant rating system. Each restau...
分类:
其他好文 时间:
2015-06-05 12:00:40
阅读次数:
216
// Filename : binary_tree.c
// Author : LupingChen
// Data : 2015.06.01
// Content : insert_data\travel_data
#include
#include
//定义节点数据类型
typedef struct Node {
i...
分类:
其他好文 时间:
2015-06-01 09:49:39
阅读次数:
124
Description
A famous travel web site has designed a new
restaurant rating system. Each restaurant is rated
by one of n (1 n 15) critics, each giving
the restaurant a nonnegative numeric rati...
分类:
其他好文 时间:
2015-05-25 14:34:12
阅读次数:
203
Description
The cows are journeying north to Thunder Bay in Canada to gain cultural enrichment and enjoy a vacation on the sunny shores of Lake Superior. Bessie, ever the competent travel agent, ha...
分类:
其他好文 时间:
2015-05-20 14:51:48
阅读次数:
114
很久不用dijkstra,几乎连基本性质也忘了,结果这道题就是考察dijkstra空间复杂度是o(n)这里总结四种算法算法名称 时间复杂度 空间复杂度dijkstra+heap O(elog(e+n)) O(n)bellman-ford O(ne) O(n)spfa O(ke) O(n)floyd....
分类:
其他好文 时间:
2015-05-20 02:07:09
阅读次数:
865