码迷,mamicode.com
首页 >  
搜索关键字:std    ( 41627个结果
【HDOJ】1983 Kaitou Kid - The Phantom Thief (2)
不仅仅是DFS,还需要考虑可以走到终点。同时,需要进行预处理。至多封闭点数为起点和终点的非墙壁点的最小值。 1 #include 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 8 ...
分类:其他好文   时间:2014-05-26 13:29:22    阅读次数:286
HAOI2006(BZOJ1050) 旅行comf
Description给你一个无向图,N(N#include#includeconst int N = 510;const int M = 5010;const int Maxint = 2147483647;using namespace std;#define For(i,n) for(int ...
分类:其他好文   时间:2014-05-26 13:09:03    阅读次数:206
C++ Input Output
C++的IO比较复杂,记录一下碰到的问题:#include "stdafx.h"#include using namespace std;int main(int argc, char* argv[]){ cout << 22/5*3 << endl; printf("Hello Wor...
分类:编程语言   时间:2014-05-26 12:42:11    阅读次数:290
pang
#include #include #include #include #include "math.h"#include #define MAXN 300using namespace std;int input[MAXN*2];stack m_stack;int main(){ int N...
分类:其他好文   时间:2014-05-26 12:39:49    阅读次数:188
poj2398Toy Storage
同poj2318! 1 //Accepted 220 KB 0 ms 2 #include 3 #include 4 #include 5 using namespace std; 6 const int MAXN = 1005; 7 struct node 8 {...
分类:其他好文   时间:2014-05-26 12:39:06    阅读次数:242
FindSmallestPolygon
// smallest_enclosing_polygon.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#define PI 3.1415926535#include using namespace std;bool IsZero(double value).....
分类:其他好文   时间:2014-05-26 12:36:52    阅读次数:297
C++运算符重载
好吧 虽然很晚了 已经1:30分了 看我能熬到什么时候把 该死的心里作业.......运算符重载呢 实质上就是函数重载 这里 我们不讲那么又臭又长的各种定义 直接上代码 PS:可能我讲的很无头绪 见谅....... 1 #include 2 using namespace std; 3 4 cl.....
分类:编程语言   时间:2014-05-26 12:18:17    阅读次数:298
C++类型转换
会记下所有C++类型转换的例子在这里:#include "stdafx.h"#include using namespace std;int main(int argc, char* argv[]){ cout<< 22/5*3 <<endl; // 输出12,注意连进位都没有包括 re...
分类:编程语言   时间:2014-05-26 12:14:05    阅读次数:273
归并排序
#includeusing namespace std;///算法重要,但是思想更重要 void MemeryArray(int a[],int n,int b[],int m,int c[])///经典框架,be careful!{ int i,j,k; i = j = k = 0; while(...
分类:其他好文   时间:2014-05-26 11:22:57    阅读次数:204
堆排序
#include#include#includeusing namespace std; //void MinHeapFixup(int a[], int i)//{// int j ,temp;// temp = a[i];// j = (i-1)/2;// while(j >= 0 && i !...
分类:其他好文   时间:2014-05-26 10:26:08    阅读次数:212
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!