码迷,mamicode.com
首页 >  
搜索关键字:namespace    ( 41927个结果
c++重载ostream的实现
#include using namespace std; class Point{ public: Point(int _x = 0, int _y = 0, int _z = 0):x(_x), y(_y), z(_z){} Point(){} ~Point(){} friend ostream& operator<<(ostream &os, const Point &pd); ...
分类:编程语言   时间:2014-09-19 04:29:05    阅读次数:183
codeforces Fedor and New Game
#include#include#include#include#include#include#include#define INF 0x3f3f3f3fusing namespace std;int a[1005];int main(){ int n, m, k; int ans, ...
分类:其他好文   时间:2014-09-19 02:19:24    阅读次数:205
usaco-4.3-lgame-passed
一个小错误,排查了半天,不要提早引用,需要引用能简化书写。/*ID: qq104801LANG: C++TASK: lgame*/#include #include #include #include #include #include #include using namespace std;in...
分类:其他好文   时间:2014-09-19 01:08:14    阅读次数:308
HDU 2255 - 奔小康赚大钱
Kuhn - Munkres 算法,第一次拍各种问题,不过还是A掉了。。/*ID:esxgx1LANG:C++PROG:hdu2255*/#include #include #include #include using namespace std;typedef long long LL;#def...
分类:其他好文   时间:2014-09-18 23:40:04    阅读次数:230
PAT-1010 Radix (25)
#include#include#include#includeusing namespace std;int main(){ string a,b; int tag,radix; int anum,bnum; //freopen("1010-in.txt","r",stdin); //f...
分类:其他好文   时间:2014-09-18 23:32:04    阅读次数:266
poj1276 多重背包
1 //Accepted 1100 KB 47 ms 2 //多重背包 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 using namespace std;10 /**11 * ...
分类:其他好文   时间:2014-09-18 23:30:04    阅读次数:244
PostgreSQL中如何判断某个SCHEMA是否存在。
SELECT?EXISTS(SELECT?1?FROM?information_schema.schemata?WHERE?schema_name?=?‘data_2014_shanxi‘); SELECT?EXISTS(SELECT?1?FROM?pg_namespace?WHERE?nspname?=?‘data_2014_shanx‘); 两种方式...
分类:数据库   时间:2014-09-18 22:25:14    阅读次数:443
PAT-1015 Reversible Primes (20)
#include#include#include#includeusing namespace std;int main(){ int n,d; stack s; //freopen("1015-in.txt","r",stdin); //freopen("1015-out.t...
分类:其他好文   时间:2014-09-18 22:13:54    阅读次数:173
poj2392 多重背包
1 //Accepted 868 KB 188 ms 2 //多重背包 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 using namespace std;10 /**11 * ...
分类:其他好文   时间:2014-09-18 22:08:14    阅读次数:190
HDU 1541 Stars 树状数组
看完题解自己敲了一遍 还需要加深理解吧#include#include#includeusing namespace std;int c[50000],num[50000];int N=32100;int lowbit(int x){ return x&(-x);}int sum(int x)...
分类:其他好文   时间:2014-09-18 22:01:34    阅读次数:141
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!