1 #include <iostream> 2 #include <cstring> 3 #include <cstdio> 4 #include <queue> 5 6 using namespace std; 7 const int INF=2147483647; 8 const int max
分类:
其他好文 时间:
2016-02-26 23:25:00
阅读次数:
245
1 #include <iostream> 2 #include <cstring> 3 #include <cstdio> 4 #include <queue> 5 6 using namespace std; 7 const int INF=2147483647; 8 const int max
分类:
其他好文 时间:
2016-02-26 23:24:07
阅读次数:
359
题目传送门 题意:训练指南P250 分析:DFS记忆化搜索,范围或者说是图是已知的字串构成的自动机图,那么用 | (1 << i)表示包含第i个字串,如果长度为len,且st == (1 << m) - 1则是可能的。打印与之前相似。 #include <bits/stdc++.h> using n
分类:
其他好文 时间:
2016-02-26 21:55:34
阅读次数:
228
题目传送门 题意:训练指南P248 分析:第一个操作可以用并查集实现,保存某集合的最小高度和最大高度以及城市个数。运用线段树成端更新来统计一个区间高度的个数,此时高度需要离散化。这题两种数据结构一起使用,联系紧密。 #include <bits/stdc++.h> using namespace s
分类:
其他好文 时间:
2016-02-26 20:38:23
阅读次数:
237
Sqoop currently do not support splitting data on N(LONG)(VAR)CHAR column types. We're however supporting splitting on (LONG)(VAR)CHAR using TextSplitt
分类:
其他好文 时间:
2016-02-26 20:35:26
阅读次数:
140
#include<iostream> #include<cstdio> #include<string> #include<string.h> #include<math.h> #include<queue> #include<map> #include<algorithm> using names
分类:
移动开发 时间:
2016-02-26 20:31:15
阅读次数:
201
#include<iostream> using namespace std; int mod[20]={1,1,2,6,4,2,2,4,2,8,4,4,8,4,6,8,8,6,8,2}; char s[1010]; //字符串 int num[1010]; //转换为数字 int sovle()
分类:
其他好文 时间:
2016-02-26 20:30:26
阅读次数:
112
来源:点击打开链接 非常easy。找规律。 每去掉一个点,点的总数量就减去n+m-1,然后看谁最先减到没有点可减。就能够了。 #include <iostream> #include <cstring> using namespace std; int main() { int n,m; cin>>
分类:
其他好文 时间:
2016-02-26 18:57:21
阅读次数:
151
选择排序:选择一个最大或者最小的元素放到起始位置,直到排完为止。(不稳定) 如有一组数据:3,6,2,1,9 ->1,6,2,3,9 ->1,2,6,3,9 ->1,2,3,6,9 1 #include <iostream> 2 3 using namespace std; 4 5 int main
分类:
编程语言 时间:
2016-02-26 14:11:14
阅读次数:
159