码迷,mamicode.com
首页 >  
搜索关键字:namespace    ( 41927个结果
hiho12周树形dp
#include#include#includeusing namespace std;const int maxn = 1111;int len;int head[maxn];//int father[maxn];struct Node{ int to; int next;}e[maxn *...
分类:其他好文   时间:2014-11-04 08:06:48    阅读次数:223
hiho11周树的直径
任意找一个点做根, 然后找到距离这个根最远的点,然后以这个点做根,再找距离这个根最远的点,两个距离和就是 树的直径。#include#include#include#include#include#includeusing namespace std;typedef long long LL;#de...
分类:其他好文   时间:2014-11-04 08:05:41    阅读次数:142
高精度 模板 压代码 精简版
1 #include 2 #include 3 #include 4 using namespace std; 5 struct bign{ 6 int len; 7 int num[1501]; 8 bool flag; 9 bign(){len=1;flag=0...
分类:其他好文   时间:2014-11-04 08:04:58    阅读次数:177
PAT 1083 List Grades
#include #include using namespace std;class Stu { public: char name[12]; char id[12];};int main() { int N = 0; // because all t...
分类:其他好文   时间:2014-11-04 01:33:12    阅读次数:128
PAT 1058 A+B in Hogwarts
#include #include using namespace std;class Number {public: int a; int b; int c; Number(int _a = 0, int _b = 0, int _c = 0): a(_a), b(_b),...
分类:其他好文   时间:2014-11-04 01:31:37    阅读次数:180
PAT 1051 Pop Sequence
#include #include #include using namespace std;bool push_validate(int &pre_push, int max_push, int cur, vector& stack, int mcap) { if (pre_push >= ...
分类:其他好文   时间:2014-11-04 01:28:04    阅读次数:248
BZOJ 1644: [Usaco2007 Oct]Obstacle Course 障碍训练课
题目1644: [Usaco2007 Oct]Obstacle Course 障碍训练课Time Limit:5 SecMemory Limit:64 MBDescription考虑一个 N x N (1 3 #include 4 #include 5 using namespace std; 6....
分类:其他好文   时间:2014-11-04 00:05:58    阅读次数:282
LeetCode OJ String to Integer (atoi) 字符串转数字
1 #include 2 #include 3 using namespace std; 4 int ato(const char *str) { 5 int i=0,e=0,s=0; 6 int max=2147483647,min=-2147483648; 7 in...
分类:其他好文   时间:2014-11-04 00:02:50    阅读次数:264
C# 基础
1.枚举 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace Test....
分类:Windows程序   时间:2014-11-04 00:01:01    阅读次数:336
ZOJ 2836 Number Puzzle ( 容斥原理 )
ZOJ 2836 Number Puzzle ( 容斥原理 )#include #include #include using namespace std;typedef long long LL;#define CLR( a, b ) memset( a, b, sizeof(a) )int m,...
分类:其他好文   时间:2014-11-03 23:57:57    阅读次数:387
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!