码迷,mamicode.com
首页 >  
搜索关键字:being a good boy in    ( 3225个结果
组合博弈
博弈,一般就是,sg啊,dfs极大极小搜索啊,dp啊,找规律啊....HDU 1847 Good Luck in CET-4 Everybody!(SG水题)预处理一下,不然会RE。HDU 4559涂色游戏这个题,非常棒...看了别人的思路,n个1个格子的sg为n%2,我们利用sg函数处理出2*i的...
分类:其他好文   时间:2014-06-28 19:36:18    阅读次数:295
定理 定律
一.劣币驱逐良币(英语:Bad money drives out good),也称作格雷欣法则或格勒善定律(Gresham's Law),是一个经济学定律。托马斯·格雷欣为16世纪的英国伊丽莎白铸币局长,格雷欣观察到,消费者保留储存成色高的货币(undebased money,贵金属含量高),在市面...
分类:其他好文   时间:2014-06-28 19:19:36    阅读次数:221
CF271D_Good Substrings
给一个原串,以及那些字符是坏的,现在问你可以从原串中取出多少个不同子串,使得其所含的坏字符的个数不超过一个定数。这个题目网上有各种各样的解法。如hash,tire。我说一下我的解法。解法一:后缀自动机dp。f[][]保存到达某个状态,前面已经有的坏字符的个数的时候的字符串数量。这样按照拓扑序列一直递...
分类:其他好文   时间:2014-06-24 14:14:07    阅读次数:169
BZOI 1507 [NOI2003] Editor
BackgroundAfter trying to solve problem EDIT1(Editor) and being ****ed by Brainf**k, Blue Mary decided to set another difficult problem about editor.D...
分类:其他好文   时间:2014-06-24 11:43:44    阅读次数:245
LeetCode——Reverse Integer
Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = -123, return -321 Have you thought about this? Here are some good questions to ask before coding. Bonus points for y...
分类:其他好文   时间:2014-06-22 09:31:16    阅读次数:220
Javascript 正确使用方法 二
好的,废话不多说,接着上篇来. 变量(variables) 始终使用 var 关键字来定义变量,如果不这样将会导致 变量全局化,造成污染. //bad superPower = new SuperPower(); //good var superPower = new SuperPower(); 使用 一个 var关键字来定义多个变量...并且每个变量一行..     // bad...
分类:编程语言   时间:2014-06-21 22:00:20    阅读次数:259
How to use CCache to speed up cocos2d-x android compilation
CCache is a compiler cache for C/C++. It speeds up recompilation by caching the result of previous compilations and detecting when the same compilation is being done again. We can use this tool to s...
分类:移动开发   时间:2014-06-21 21:13:40    阅读次数:318
[转]Request Flow for Provisioning Instance in Openstack
One of the most important use-case in any cloud is provisioning a VM . In this article we shall do a walk through about an instance(VM) being provisio...
分类:其他好文   时间:2014-06-21 16:59:43    阅读次数:376
JavaScript Patterns 4.10 Curry
When you find yourself calling the same function and passing mostly the same parameters, then the function is probably a good candidate for currying. ...
分类:编程语言   时间:2014-06-21 00:20:34    阅读次数:297
第一章习题
1.2#include #include #include #include #include using namespace std;char arr[20][20];char words[30][4]={ "boy","own","sad","job","dry", "can","may","b...
分类:其他好文   时间:2014-06-18 11:08:35    阅读次数:211
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!