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
1.sprintf,sprintf_ssprintf(char* buffer, const
char* format, [argument]);vs下需要加上_CRT_SECURE_NO_WARNINGS#include using namespace
std;int main(){ cha...
分类:
其他好文 时间:
2014-05-20 01:40:00
阅读次数:
292
#include using namespace std;struct MyStruct{
int s;};int main(){ void* addr = new MyStruct;//缓冲区地址,大小为mysturct的大小 int * naddr
= new (addr)in...
分类:
编程语言 时间:
2014-05-20 00:12:47
阅读次数:
382
#include using namespace std;#define
StructArrarySize 5 // 老师数量 #define StudentNum 3 // 每位老师...
分类:
其他好文 时间:
2014-05-20 00:11:27
阅读次数:
342
经典dp问题,花店橱窗布置,不再多说,上代码#include #include #include
#include #include #define N 150#define inf 0x7f7f7f7fusing namespace std;int n,
m;int val[N][N], f[.....
分类:
其他好文 时间:
2014-05-19 22:26:02
阅读次数:
349
1 #include "iostream" 2 #include "string" 3 using
namespace std; 4 5 typedef struct node{ 6 string data; 7 struct node *next; 8
node(str...
分类:
其他好文 时间:
2014-05-19 22:08:01
阅读次数:
368
using System;using System.Collections.Generic;using
System.Linq;using System.Text;namespace 继承{ class Program { static void
Main(string[]...
分类:
其他好文 时间:
2014-05-19 21:40:41
阅读次数:
347
using System;using System.Collections.Generic;using
System.Linq;using System.Text;namespace 异常1{ class Program { static void
Main(string[...
分类:
其他好文 时间:
2014-05-19 20:39:32
阅读次数:
309
专出神题的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