码迷,mamicode.com
首页 >  
搜索关键字:using password: yes    ( 53562个结果
hdu 4825 Xor Sum(字典树)
题目链接:hdu 4825 Xor Sum 题目大意:中文题。 解题思路:将给定得数按照二进制建成一颗字典树,每一层分别对应的各个位数上的01状态。然后每一次查询,如果对应位置为0,则要往1的方向走,如果是1,则要往0的方向走。但是要注意,走的前提是对应分支是存在的。 #include #include #include using namespace std; //type...
分类:其他好文   时间:2014-05-23 02:15:15    阅读次数:286
hdu 4826 Labyrinth(dp)
题目链接:hdu 4826 Labyrinth 题目大意:中文题。 解题思路:不难想的递推,dp[i][j][0]从上面过来的情况,dp[i][j][1]从下面过来的情况,然后这两种情况都可以从前一列走过来。 #include #include #include using namespace std; const int N = 105; const int INF = 0...
分类:其他好文   时间:2014-05-22 22:42:28    阅读次数:350
dapper+linq+json+ztree构建树
dapper获取集合实体 /// /// 获取表tb_sys_zhuowei全部数据 /// public IEnumerable SelectAll_tb_sys_zhuowei() { using (IDbConnection conn = OpenConnection()) ...
分类:移动开发   时间:2014-05-22 17:34:19    阅读次数:387
工资类
#include using namespace std; class Salary//工资类 { public: void set_salarys( );//设置工资 void add_salarys(int x);//增加工资 void sort_salarys();//根据工资由大到小排序 void show_salarys( );//显示工人...
分类:其他好文   时间:2014-05-22 17:33:38    阅读次数:312
S1 商品信息管理系统
#include #include #include #include #include using namespace std; //void welcome();//欢迎界面 void display(int);//输出信息 int size=0; class Product { public: void addProduct(); void queryById();...
分类:其他好文   时间:2014-05-22 17:00:21    阅读次数:250
使用构造函数初始化三角形类
方法1:使用带参数构造函数,即Triangle(double x, double y, double z),三边长在调用时由实参直接给出#include #include using namespace std; class Triangle { public: //带参构造函数 Triangle(double x, double y, double z); double peri...
分类:其他好文   时间:2014-05-22 16:59:45    阅读次数:169
删除string里面的指定字符
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 #include  #include    using namespace std;   int main() {     ...
分类:其他好文   时间:2014-05-22 16:57:45    阅读次数:202
KMP字符串匹配
1 #include 2 3 4 using namespace std; 5 6 #define MAX 255 7 8 typedef unsigned char BYTE; 9 10 typedef BYTE String[MAX+1]; 11 12 bo...
分类:其他好文   时间:2014-05-22 15:10:06    阅读次数:278
QuickSort
1 #include 2 3 4 using namespace std; 5 6 void Repeat(int* a,int Left,int Right); 7 int QuickSort(int* a,int Left,int Right); 8 9 10 void main()1...
分类:其他好文   时间:2014-05-22 14:53:10    阅读次数:224
mvc ajax请求
@{ ViewBag.Title = "ajax";}@using (@Html.BeginForm()){ @Ajax.ActionLink("这是一个ajax请求", "ajax", new AjaxOptions{ UpdateTargetId = "ajaxId", //I...
分类:Web程序   时间:2014-05-22 14:37:30    阅读次数:254
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!