Goffi and Squary Partition
Problem Description
Recently, Goffi is interested in squary partition of integers.A set X of k distinct positive integers is called squary partition of n if and ...
分类:
其他好文 时间:
2014-08-25 11:52:45
阅读次数:
208
BestCoder Round #6Bhttp://acm.hdu.edu.cn/showproblem.php?pid=4982Goffi and Squary PartitionTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/...
分类:
其他好文 时间:
2014-08-25 11:34:44
阅读次数:
236
HDU 4982 Goffi and Squary Partition
思路:直接从完全平方数往下找,然后判断能否构造出该完全平方数,如果可以就是yes,如果都不行就是no,注意构造时候的判断,由于枚举一个完全平方数,剩下数字为kk,构造的时候要保证数字不重复
代码:
#include
#include
#include
int n, k;
bool judge(int...
分类:
其他好文 时间:
2014-08-24 23:54:13
阅读次数:
283
LeetCode: Palindrome PartitionGiven a string s, partition s such that every substring of the partition is a palindrome.Return all possible palindrome ...
分类:
其他好文 时间:
2014-08-24 19:21:22
阅读次数:
196
一 CAP理论简述 海量数据管理中的一致性理论,包括CAP理论,BAS理论,数据一致性理论模型,以及现有的经典数据一致性技术。其中CAP(Consistency, Availability, Partition Tolerance,) 理论是NoSQL数据库管理系统构建的基础。 CAP定律说的是在....
分类:
其他好文 时间:
2014-08-24 01:30:01
阅读次数:
212
Palindrome PartitioningGiven a strings, partitionssuch that every substring of the partition is a palindrome.Return all possible palindrome partitioni...
分类:
其他好文 时间:
2014-08-23 21:34:11
阅读次数:
288
mac下的filezilla是一个很奇葩的应用,奇葩在哪?有一次我不知道怎么操作的,把filezilla搬到到了窗体顶部,结果被mac的菜单栏挡住了标题栏,然后再也无法移动窗体了,以下是我为了移动它做的努力:尝试全屏,失败尝试把它拖到另一外屏幕,结果到了另一个屏幕,它仍然躲在菜单栏下,失败尝试接一个...
分类:
其他好文 时间:
2014-08-23 17:37:41
阅读次数:
214
今天有个etl开发在droppartition的时候遇到了问题,因为是使用了自己的账号,而hdfs中对应partition的文件属主是hdfs的,在删除时会因为权限问题报错,切换用户为hdfs,做droppartition的错误,还是报错,看来没这么简单。查看表的hdfs属性,目录的属主不是hdfs且目录对hdfs没..
分类:
其他好文 时间:
2014-08-23 02:29:00
阅读次数:
231
sqlserver巧用row_number和partition by分组取top数据
分类:
数据库 时间:
2014-08-22 01:30:35
阅读次数:
320