码迷,mamicode.com
首页 >  
搜索关键字:define    ( 25272个结果
《算法竞赛进阶指南》0x00 汉诺塔四塔问题 递推关系
题目链接:http://poj.org/problem?id=1958 代码: #include<iostream> #include<cstring> using namespace std; #define maxn 100 typedef long long ll; ll d[maxn],f[ ...
分类:编程语言   时间:2020-06-14 12:57:40    阅读次数:82
Codeforces Round #649 (Div. 2) D - Ehab's Last Corollary dfs
#include<bits/stdc++.h> #define ls rt<<1 #define rs rt<<1|1 using namespace std; typedef long long ll; const int p=1e8+7; int ans1; int ans2; int ans3 ...
分类:其他好文   时间:2020-06-14 12:57:25    阅读次数:164
最长异或路径 - Trie
给定一棵 n 个点的带权树,结点下标从 1开始到 N。寻找树中找两个结点,求权值最大的异或路径。异或路径指的是指两个结点之间唯一路径上的所有边权的异或。 ...
分类:其他好文   时间:2020-06-14 12:57:13    阅读次数:60
Luogu2463 SDOI2008 Sandy的卡片
Description link Solution 看到这种题,首先是两个数作差 然后我们把所有的差连起来,每个序列和每个序列中间加上一个极大值 然后求出来 \(sa\) 和 \(height\) 数组,并且把所 要求的就是在每 \(n\) 个串的 \(lcp\) (这里好像就可以直接$height ...
分类:其他好文   时间:2020-06-14 12:48:37    阅读次数:65
Codeforces Round #628 (Div. 2) F——Ehab's Last Theorem dfs
#include<bits/stdc++.h> #define ls rt<<1 #define rs rt<<1|1 using namespace std; typedef long long ll; const int p=1e8+7; vector<int>v[1001000],ans; i ...
分类:其他好文   时间:2020-06-14 12:35:49    阅读次数:64
数据结构:第六章学习小结
思维导图 算法小结 1. 邻接矩阵存储 1 #define MVNum 100 //最大顶点数 2 typedef char VerTexType;//假设顶点的数据类型为字符型 3 typedef int ArcType;//假设边的权值类型为整型 4 5 typedef struct 6 { 7 ...
分类:其他好文   时间:2020-06-14 11:08:49    阅读次数:152
顺序表的插入,删除与查找的实现
插入与删除: #include <stdio.h> #define MaxSize 10 typedef struct { int data[MaxSize]; int length; }SqList; bool ListInsert(SqList &L, int i, int e) { if (i ...
分类:其他好文   时间:2020-06-14 10:48:53    阅读次数:63
C 实战练习题目47
题目:宏#define命令练习2。 程序分析:无。 实例: 1 #include<stdio.h> 2 #define exchange(a,b) { int t;t=a;a=b;b=t;}//注意放在一行里 3 int main() 4 { 5 int x=10; 6 int y=20; 7 pr ...
分类:其他好文   时间:2020-06-14 01:29:23    阅读次数:67
C 实战练习题目48
题目:宏#define命令练习3。 程序分析:无。 实例: 1 #define LAG > 2 #define SMA < 3 #define EQ == 4 #include <stdio.h> 5 int main() 6 { 7 int i,j; 8 printf("请输入两个数字:\n"); ...
分类:其他好文   时间:2020-06-14 01:01:37    阅读次数:57
ES6 之 06.对象结构赋值
const Tom={ name:'Tom', age:20, family:{ mother:'Norah Jones', father:'Richard Jones', brother:'Howard Jones', } } //之前已经声明了的时候 let name ({name ,age}= ...
分类:其他好文   时间:2020-06-13 17:43:38    阅读次数:55
25272条   上一页 1 ... 75 76 77 78 79 ... 2528 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!