A frog is crossing a river. The river is divided into x units and at each unit there may or may not exist a stone. The frog can jump on a stone, but i ...
分类:
其他好文 时间:
2016-11-04 23:50:00
阅读次数:
225
There's another solution that also works. I found it on this forum: This works because you have multiple classes in different jar files. Removing and ...
分类:
数据库 时间:
2016-11-04 19:56:07
阅读次数:
248
A frog is crossing a river. The river is divided into x units and at each unit there may or may not exist a stone. The frog can jump on a stone, but i ...
分类:
其他好文 时间:
2016-10-28 07:42:06
阅读次数:
175
http://poj.org/problem?id=1738 (题目链接) 题意 一排n堆石子,合并两堆石子的代价为两堆石子总数之和。问将所有石子合并为一堆所需要的最小代价。 Solution 本来想用刚学的四边形不等式练练手的,没想到n的范围竟然是50000,数组都开不下啊。。只好去看了下那个不明 ...
分类:
其他好文 时间:
2016-10-14 00:03:05
阅读次数:
201
A frog is crossing a river. The river is divided into x units and at each unit there may or may not exist a stone. The frog can jump on a stone, but i ...
分类:
其他好文 时间:
2016-10-06 19:46:43
阅读次数:
264
【问题描述】 在《Harry Potter and the Sorcerer's Stone》中,想得到魔法石,必须要通过许许多多的测试和游戏。现在阿不思·邓布利多认为这些游戏都具有魔法力,魔法师们能够轻松的通过,我们要增加一些只能够通过智力解决的题目,需要真正的聪明人才能够通过。现在由于我们敬爱的 ...
分类:
其他好文 时间:
2016-10-06 00:17:30
阅读次数:
282
http://poj.org/problem?id=1740 (题目链接) 男人八题之一 题意:对于n堆石子,每堆若干个,两人轮流操作,每次操作分两步,第一步从某堆中去掉至少一个,第二步(可省略)把该堆剩余石子的一部分分给其它的某些堆。最后谁无子可取即输。 Solution 首先我们考虑两堆相等的情 ...
分类:
其他好文 时间:
2016-09-27 23:09:17
阅读次数:
160
原文:http://www.cnblogs.com/asmer-stone/p/5470144.html virtualenvwrapper是用来管理virtualenv的扩展包,用着很方便。 1. 安装: 2. 配置: 修改~/.bash_profile或其它环境变量相关文件(如 .bashrc( ...
分类:
移动开发 时间:
2016-09-27 14:59:40
阅读次数:
286
var //代表变量,变量的值可以改变 let//代表常量类型不可改变 var ceshi:Double = 10//假如声明的变量没有改变的话Swift也会提示将其改为let,而且在下面的代码中没有用到该变量Swift就会提示将let改为下划线,因为下划线代表忽略该变量,就相当于OC中提示并没有用 ...
分类:
编程语言 时间:
2016-09-25 09:29:50
阅读次数:
148
A frog is crossing a river. The river is divided into x units and at each unit there may or may not exist a stone. The frog can jump on a stone, but i ...
分类:
其他好文 时间:
2016-09-20 13:59:45
阅读次数:
450