198. House Robber 202. Happy Number 204. Count Primes 219. Contains Duplicate II 固定窗口滑动 219. Contains Duplicate II 固定窗口滑动 class Solution { public: boo ...
分类:
其他好文 时间:
2018-10-04 10:54:52
阅读次数:
131
http://poj.org/problem?id=1797 Description Background Hugo Heavy is happy. After the breakdown of the Cargolifter project he can now expand business. ...
分类:
其他好文 时间:
2018-10-04 10:34:42
阅读次数:
153
题目链接 Problem Description Little Q wants to buy a necklace for his girlfriend. Necklaces are single strings composed of multiple red and blue beads.Lit ...
分类:
移动开发 时间:
2018-10-04 08:54:29
阅读次数:
200
RemoteControlWithUndo public class RemoteControlWithUndo { Command[] onCommands; Command[] offCommands; Command undoCommand; public RemoteControlWithU... ...
分类:
其他好文 时间:
2018-10-04 08:44:55
阅读次数:
182
Splay : 十分happy的数据结构(过于灵活) 推荐:https://blog.csdn.net/Clove_unique/article/details/50630280 简单的定义: fa[x]为x的父亲,son[x][0/1]为x的左右儿子 简单的操作 get(x):查找x为父亲的哪一个 ...
分类:
其他好文 时间:
2018-09-30 12:58:19
阅读次数:
136
HDU5119 Happy Matt Friends 做法:拆成两堆数,分别暴力出两组的所有异或值A,B,枚举A, 将B全部插入Trie树,通过枚举的数每一位的值,确定异或后构成的新树,然后在新树上统计比m大的值的个数即可。 c++ include define pb push_back typed ...
分类:
移动开发 时间:
2018-09-27 01:34:11
阅读次数:
181
Happy Matt Friends Time Limit: 6000/6000 MS (Java/Others) Memory Limit: 510000/510000 K (Java/Others)Total Submission(s): 5248 Accepted Submission(s): ...
分类:
移动开发 时间:
2018-09-27 00:07:05
阅读次数:
153
题意:给定一个n,k,l。 问有多少长度为n的序列满足选出一些数使得他们相加为k,数列中每个数都在1-l以内。 Solution 正解还是很妙的。 状压dp,设dp[i][j]表示长度为i的序列,能表示出集合为j的序列个数。 这个状态非常好,我们每局下一个可填的数,可选集合就变成了j|(1<<p-1 ...
分类:
移动开发 时间:
2018-09-20 18:04:43
阅读次数:
206
Ubuntu的主题界面我一直很喜欢,一直想做一个双系统,因为电脑硬盘里的资料多,害怕失误导致资料丢失,所以一直在用win7,但是好奇心害死猫,忍不住找了一篇双系统的博客,结果一步一步,做了全盘。。。。。 所以现在只有Ubuntu了,于是试一试这个被吹上天的ubuntu吧,首先装个网易云音乐happy ...
分类:
系统相关 时间:
2018-09-15 19:22:12
阅读次数:
400
请实现一个函数,将一个字符串中的每个空格替换成“%20”。例如,当字符串为We Are Happy.则经过替换之后的字符串为We%20Are%20Happy。 ...
分类:
其他好文 时间:
2018-09-12 20:03:22
阅读次数:
115