码迷,mamicode.com
首页 >  
搜索关键字:struct dpif_class    ( 18974个结果
CodeForces 230A
简单的一个排序+贪心#include #include using namespace std;struct peo{ int x,y;};bool com(peo a,peo b){ return a.x>s>>n; for(int i=0;i>l[i].x>>l[i].y; ...
分类:其他好文   时间:2014-07-19 18:34:28    阅读次数:207
线索二叉树
数据定义: 1 /* 2 * 枚举类型定义 NO -> 没有线索化 YES -> 线索化了的 3 */ 4 enum Thread { NO, YES } 5 6 /* 7 * 线索二叉树的结点类型定义 8 */ 9 struct Node10 {11 Element...
分类:其他好文   时间:2014-07-19 14:32:38    阅读次数:215
011_hasCycle
1 /* 2 * Author :SJQ 3 * 4 * Time :2014-07-16-20.21 5 * 6 */ 7 #include 8 #include 9 #include 10 using namespace std;11 12 struct ListNode {...
分类:其他好文   时间:2014-07-19 13:36:10    阅读次数:166
poj 2503 Babelfish
一个简单的单词翻译的题,我是使用字典序做的; 由于输入的问题 ,,WA,WA,,, 都是泪;#include #include #include using namespace std; struct node{ int chile[26]; bool qq; char uu[11]; node() { qq=0;...
分类:其他好文   时间:2014-07-19 12:08:48    阅读次数:171
[BZOJ2194]快速傅立叶之二
Description 请计算C[k]=sigma(a[i]*b[i-k]) 其中 k 11 #include12 const double PI=3.14159265359;13 struct P{double x,y;};14 P operator+(const P&a,const P&b){....
分类:其他好文   时间:2014-07-19 11:27:07    阅读次数:178
CMSIS Example - osMailQ osMailPut osMailGet
1 struct Thread0_Mail 2 { 3 int a; 4 int b; 5 }; 6 7 osMailQId thread0_mail; 8 osMailQDef( thread0_mail, 10, struct Thread0_Mail ); 9 10 struct ...
分类:其他好文   时间:2014-07-19 09:03:28    阅读次数:1090
hdu 1251 统计难题
用到tire树; 基础应用  这里讲的挺详细的 点击打开链接 #include #include #include #define max 20 using namespace std; char w[6]; struct node{ bool a; int chile[26]; int q;//前缀 node(){ q=false;...
分类:其他好文   时间:2014-07-19 08:26:00    阅读次数:181
hdu 1236 排名
结构体定义没搞明白,一直WA,终于AC了,真是高兴呀 代码如下: #include #include #include struct student { char id[30]; int score; }person[1001]; int cmp(const void *a,const void *b) { struct student *aa=(struct studen...
分类:其他好文   时间:2014-07-19 08:15:25    阅读次数:194
static变量,全局变量,局部变量
/* c++ static变量,全局变量,局部变量 */ #include using namespace std; static int x=1; static int y=2; struct A { static int x; static int y; }; int A::x=3; int A::y= x;//3 //int A::y= ::x; //1 int mai...
分类:其他好文   时间:2014-07-19 02:48:26    阅读次数:208
USACO Section 2.1 Ordered Fractions
/* ID: lucien23 PROG: frac1 LANG: C++ */ #include #include #include #include using namespace std; typedef struct Fraction { int numerator; int denominator; Fraction(){} Fraction(int x, int y...
分类:其他好文   时间:2014-07-19 02:31:25    阅读次数:199
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!