题目见http://125.221.232.253/JudgeOnline/problem.php?id=1073http://125.221.232.253/JudgeOnline/problem.php?cid=1073&pid=4有不少方法可以解决该题,这里使用hash来解决.
hash函数很...
分类:
其他好文 时间:
2014-05-10 01:03:19
阅读次数:
264
[apptest@vis appl]$ su -oravis[oravis@vis 11.1.0]$
sqlplus / as
sysdbaSQL>createusererpqueryidentifiedbyerpquerydefaulttablespaceAPPS_TS_TX_DATA;SQL>g...
分类:
数据库 时间:
2014-05-10 00:57:22
阅读次数:
347
HBase是一个类Bigtable系统,按照Google的论文对
Bigtable的定义是“一种稀疏的,分布式的,持久的多为维度的有序Map。这个Map由row key,column
key和timestamp做为索引,Map中的值是连续的byte数组”。HBase的多维度,包括table和colu...
分类:
其他好文 时间:
2014-05-10 00:30:36
阅读次数:
357
1 static const unsigned short crc16_table[256]= 2 {
3 0x0000, 0xC0C1, 0xC181, 0x0140, 0xC301, 0x03C0, 0x0280, 0xC241, 4 0xC601,
0x06C...
分类:
其他好文 时间:
2014-05-10 00:02:02
阅读次数:
382
当hive在执行大数据量的统计查询语句时,经常会出现下面OOM错误,具体错误提示如下:
Possible error: Out of memory due to hash maps used in map-side aggregation.
Solution: Currently hive.map.aggr.hash.percentmemory is set to 0.5. Try set...
分类:
其他好文 时间:
2014-05-09 21:08:27
阅读次数:
366
using UnityEngine;using System.Collections;public
class MoveSample : MonoBehaviour{ void Start(){ //iTween.MoveBy(gameObject,
iTween.Hash("x", 2, "e.....
分类:
其他好文 时间:
2014-05-09 20:11:02
阅读次数:
455
做出的效果样式如下图,1,首先考虑的是如何显示border,就像是分割代码,我把border分割为最外层DIV全border,和内层DIV的right和bottom的border,就是右边和下边。2,考虑DIV的布局,内层DIVfloat:left,设定每个DIV的宽度和高度,就可以达到想要的效果,...
分类:
Web程序 时间:
2014-05-09 19:36:13
阅读次数:
519
在ASP.NET的Repeater控件,实现隔行变色,是极简单的事情。因为它有ListItemType.Item和ListItemType.AlternatingItem模版。如果在普通的表格(Table)来实现隔行变色,就得使用css样式与jQuery来解决。先来看看原始的表格样式:打开视图:在视...
分类:
其他好文 时间:
2014-05-09 19:22:54
阅读次数:
367
use databases 显示所有数据库 use schame 使用数据库 show tables
显示当前数据库中的所有表 describe table 显示表结果 其他一些基本操作:例如更新,插入,查询,删除。
参考资料:http://wenku.baidu.com/link...
分类:
数据库 时间:
2014-05-09 19:20:41
阅读次数:
363
一、题外篇
今天很悲催啊,给用户数据做datapatch的时候,每个月的数据多导入了一份,瞬间惊出一身冷汗...这可是产品环境,要是被老板知道了可就死定了,赶紧去掉重复的记录,同时写下下面的文章以备后用。
二、准备篇
1. 先创建一张学生表student:
create table student(
id varchar(10) not n...
分类:
数据库 时间:
2014-05-09 15:01:29
阅读次数:
394