码迷,mamicode.com
首页 >  
搜索关键字:using    ( 53562个结果
hdu5423
链接:点击打开链接 题意:两棵树中所有点到根节点的距离都相同时这两棵树叫做相似的树,两棵树中有某个节点的父节点不同时这两棵树叫不同的数,如果一棵树不存在另一棵树与之不同且相似则称这棵树为特殊的树,给出一棵树判断是否为特殊的树 代码:#include #include #include #include using namespace std; int s[1005][1005],sum...
分类:其他好文   时间:2015-08-31 06:33:18    阅读次数:160
C#泛型
using System;using System.Collections;using System.Collections.Generic;using System.IO;namespace codeTest{ class Program { //委托泛型的使用 ...
分类:Windows程序   时间:2015-08-31 06:27:39    阅读次数:239
C#的事件
using System;using System.Collections;using System.Collections.Generic;using System.IO;namespace codeTest{ class Program { static void Ma...
分类:Windows程序   时间:2015-08-31 06:27:07    阅读次数:186
BestCoder Round #53
HDU 5424 Rikka with Graph II 【题目链接】:click here~~ 代码: #include using namespace std; const int N=1005; vector g[N]; bool vis[N]; int dg[N]; int cnt; int n,u,v; bool ok; void dfs(int u,int cur) { ...
分类:其他好文   时间:2015-08-31 01:14:10    阅读次数:274
【C#】读取和写入本地txt文件
本次我们要使用C#的方式进行txt文件的读取和写入,在Unity的开发过程中同样适用,下面来具体实现吧。 创建文件的打开、关闭、读取、写入类:MyFileStream 要引入System.IO和System.Runtime.Serialization.Formatters.Binary和,一个是文件读取的IO类和另一个是二进制类,具体代码如下: using UnityEngine...
分类:Windows程序   时间:2015-08-31 01:12:45    阅读次数:229
算法题:求一个数组中和为sum的所有组合
#include #include using namespace std; void Get_Sum(int sum,int n,int a[],list& lst) { if(sum<=0 || n<0)return; if(sum==a[n]) { lst.push_back(a[n]); lis...
分类:编程语言   时间:2015-08-31 01:12:07    阅读次数:190
get方法与post方法的使用
使用get方法获取页面的form内容新建一个getform.html Using Http Get Method First Name : Last Name : Email-Id : ...
分类:其他好文   时间:2015-08-31 01:00:09    阅读次数:232
给一千万个数据量的文件排序
#include #include #include #include #include #include #include #include #include #include #include #define MAXN 5000000 #define RST(N)memset(N, 0, sizeof(N)) using namespace std; typedef u...
分类:编程语言   时间:2015-08-30 23:16:49    阅读次数:235
hdu5416CRB and Tree 异或
//给一棵树 //对任意的s //问有多少对(u,v)是的从u到v的路径的所有边权值为s //f(u,v) = f(root , u)^f(root ,v) //只要记录所有点到树根的路径的异或值 //然后枚举端点 #include #include #include using namespace std ; const int maxn = 1e5+10 ; typedef long long...
分类:其他好文   时间:2015-08-30 23:15:38    阅读次数:302
算法:KMP算法
#include #include #include using namespace std; void CreateNext(int a[],char *str) { int n = strlen(str); a[0]=0; int flags = 0; for(int i=1;i<n;i++) { if(str[i]==str[flags]) { a[i]...
分类:编程语言   时间:2015-08-30 23:13:48    阅读次数:267
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!