using System;using System.Collections.Generic;using
System.Linq;using System.Text;namespace 构造函数1{ class Program { static void
Main(strin...
分类:
其他好文 时间:
2014-05-20 02:22:09
阅读次数:
299
题目描述有m个盒子,第i个盒子的长尾hi,宽为wi。如果两个盒子i,j满足hi#include#includeusing
namespace std;const int maxn=20001;struct node{ int x,y;}box[maxn];int
a[maxn];bool cm...
分类:
其他好文 时间:
2014-05-20 02:11:24
阅读次数:
251
#include using namespace std;int func(int x){ int
cnt = 0; while (x) { cnt++; x = x&(x - 1); } return cnt;}int main(){ ...
分类:
其他好文 时间:
2014-05-17 14:54:19
阅读次数:
194
using System;using System.Collections.Generic;using
System.Linq;using System.Text;namespace 对象引用{ class Program { static void
Main(string...
分类:
其他好文 时间:
2014-05-17 14:30:19
阅读次数:
279
专出神题的xyz。支持删加边、修改点权、维护树的直径。LCT
需要额外记录子树信息。用一个堆维护。#include#include#include#include#include#includeusing
namespace std;#define rep(i,x,y) for(i=x;i=y;i....
分类:
其他好文 时间:
2014-05-17 14:29:38
阅读次数:
667
a****************************************************************************************************为什么需要BGPBGP的特性运行在tcp之上(端口179)单播建邻居触发增量更新丰富的选路属性IBGP与EBGPBGP邻居建立过程解析*********************************************..
分类:
其他好文 时间:
2014-05-16 02:23:26
阅读次数:
377
program.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
namespace GroupBoxTest13
{
static class Program
{
///
/// 应用程序的...
分类:
其他好文 时间:
2014-05-16 01:56:45
阅读次数:
319
题目:
链接:点击打开链接
题意:
DFS搜索
算法:
dfs
思路:
简单题
代码:
#include
#include
#include
using namespace std;
int w,h;
char s[30][30];
int vis[30][30];
int cnt;
void dfs(int x,int y)
{
if...
分类:
其他好文 时间:
2014-05-16 00:02:10
阅读次数:
438
题目:
链接:点击打开链接
题意:
输入n和nc,以及字符串s,输出长度为n的不同字串的个数。
算法:
思路:
用hash判重(hash值。。。。。。),看了大牛的代码,对hash还是不甚理解。。。。
代码:#include
#include
#include
#include
using namespace std;
#define MAXN 1...
分类:
其他好文 时间:
2014-05-15 23:25:24
阅读次数:
404
裸题,瞬秒。。
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
#define L(id) tree[id].ch[0]
#define R(id) tree[id].ch[1]
#define Size(id) tree[id].size
#...
分类:
其他好文 时间:
2014-05-15 22:52:51
阅读次数:
328