码迷,mamicode.com
首页 >  
搜索关键字:typedef struct    ( 24378个结果)
数组的应用—顺序表简化版.cpp
#include <stdio.h> #include <stdlib.h> //数组的应用:顺序表【线性表的一种存储方式】 struct Arr { int * pBase; //保存首地址 int len; //数组的总长度 int cet; //cet: current efficient(当 ...
分类:编程语言   时间:2020-11-01 22:05:49    阅读次数:23
《51nod1237 最大公约数之和 V3》
好题: #include<bits/stdc++.h> using namespace std; typedef long long LL; const int N = 5e6 + 5; const LL Mod = 1e9 + 7; #define INF 1e9 #define dbg(x) c ...
分类:其他好文   时间:2020-11-01 22:04:43    阅读次数:23
单链表完整实现
#include <stdio.h> #include <stdlib.h> /* 定义结构体 */ typedef struct Node { int data; //数据域 struct Node * pNext;//指针域 }NODE, * PNODE; //由于使用了typedef, 所以N ...
分类:其他好文   时间:2020-11-01 22:00:48    阅读次数:14
c++ 常用宏操作
//求最大值和最小值#define MY_MAX( x, y ) ( ((x) > (y)) ? (x) : (y) ) #define MY_MIN( x, y ) ( ((x) < (y)) ? (x) : (y) ) //得到一个field在结构体(struct)中的偏移量//#define ...
分类:编程语言   时间:2020-11-01 10:38:25    阅读次数:18
Exploiting Choice: Instruction Fetch and Issue on an Implementable Simultaneous Multithreading Processor(2)
##Time 2020.10.31 Summary Research Objective Problem Statement Method(s) The methodology in this paper closely follows the simulation and measurement ...
分类:其他好文   时间:2020-11-01 10:33:43    阅读次数:17
链表应用能力自测
#include <stdio.h> #include<string.h> #include<stdlib.h> //第一关代码 struct node {//此处填写代码,定义链表结点类型,包含一个存放整型数据的 成员,和一个指向下一个结点的成员 int data; struct node* ne ...
分类:其他好文   时间:2020-11-01 10:15:29    阅读次数:17
P4514 上帝造题的七分钟 | 二维前缀和板子
# include <bits/stdc++.h> using namespace std; const int N = 2050; int n,m; int lowbit(int x) {return x & -x;} struct _2wBIT { int a[N][N]; void clear ...
分类:其他好文   时间:2020-11-01 09:41:49    阅读次数:19
DAY2 总结
知识的迁移,题目意思的分析 T1:互质数对 显然,对于在线的题目,我们应该认真的思考(如果计算过于麻烦,我们是不是可以通过增量来计算) 推导过程: 第二步到第三步:因为每一个d要满足|ax和ay,所以对于每一个μ来说,只有对于每一个ax加入进来的约数,会产生的只有(ay中是d倍数的个数,记录并计算就 ...
分类:其他好文   时间:2020-10-31 02:00:49    阅读次数:18
sqlist --逆置 max
//顺序表基本运算算法 #include <stdio.h> #include <malloc.h> #define MaxSize 50 typedef int ElemType; typedef struct { ElemType data[MaxSize]; //存放顺序表元素 int len ...
分类:数据库   时间:2020-10-30 12:49:15    阅读次数:16
[校内训练20_10_23~25]
1. 标准的卢卡斯定理加数位dp,主要是算C(n,i)*C(n,2*i)。 但由于这题的模数是质数,就不需要考虑很多东西,如:是否超过上限了、是否有连续的进位。 1 #include<bits/stdc++.h> 2 using namespace std; 3 typedef long long ...
分类:其他好文   时间:2020-10-30 12:28:57    阅读次数:17
共24378条   上一页 1 ... 44 45 46 47 48 ... 2438 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!