码迷,mamicode.com
首页 >  
搜索关键字:too many links;mkdir    ( 8984个结果
hdoj 5137 How Many Maos Does the Guanxi Worth【最短路】
题目:hdoj 5137 How Many Maos Does the Guanxi Worth 题意:给出一个无向图n个点m条边,断开其中的除了1和n之外的其中一个点的所有边,让最短路最长。 分析:思路已经题意中给出了。枚举删去那些的所有变,然后求一个最大的最短路。就是写代码的事儿 AC代码: #include #include #include using na...
分类:其他好文   时间:2014-12-04 12:14:24    阅读次数:189
cigarettes(南阳oj94)
cigarettes 时间限制:3000 ms  |  内存限制:65535 KB 难度:2 描述 Tom has many cigarettes. We hypothesized that he has n cigarettes and smokes them one by one keeping all the butts. Out of k > 1 bu...
分类:其他好文   时间:2014-12-04 07:43:23    阅读次数:160
Leetcode: Climbing Stairs
You are climbing a stair case. It takesnsteps to reach to the top.Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb...
分类:其他好文   时间:2014-12-04 00:54:19    阅读次数:127
Slenium_java_4 Try demo on 12306.cn (2)
I was too optimistic.It is take several days working on the demo.. The intresting thing is when I finished the demo, I understand how people make a ro...
分类:编程语言   时间:2014-12-04 00:41:10    阅读次数:219
UVA10183 - How Many Fibs?(java大数+二分)
UVA10183 - How Many Fibs?(java大数+二分) 题目链接 题目大意:给你a,b,求[a,b]之间有多少个fibs数。 解题思路:虽然a.b很大,但是在10^100内的fibs却不超过500个。这样就可以先把这些fibs保存在数组中,然后每次二分去找a,b的位置,然后就可以得到之间有多少个fibs。 代码: import java.util.*; ...
分类:编程语言   时间:2014-12-03 23:22:51    阅读次数:224
Hinernate进行mysql数据库的逆向工程无法生成主外键关系
(1)我们在进行SSH开发大※的项目的时候,使用myeclipse自带的hibernate的逆向工程工具时,发现竟然无法生成one-to-one  one-to-many等的主外键关系,明明的数据库建时已经有主外键关系了.为啥逆向生成时就不行了呢? (2)首先说一下,我使用的是PHP开发环境Appserv自带的MySQL数据库,不是单独安装的; (3)这是因为数据库引擎的问题, 我们可以在s...
分类:数据库   时间:2014-12-03 19:22:31    阅读次数:212
sql点滴37—mysql中的错误Data too long for column '' at row 1
原文:sql点滴37—mysql中的错误Data too long for column '' at row 1 1、MYSQL服务 我的电脑——(右键)管理——服务与应用程序——服务——MYSQL——开启(停止、重启动) 2、命令行方式 Windows 1.点击“开始”->“运行”(快捷键Win+...
分类:数据库   时间:2014-12-03 19:06:01    阅读次数:257
[leetcode]Unique Binary Search Trees
问题描述: Given n, how many structurally unique BST's (binary search trees) that store values 1...n? For example, Given n = 3, there are a total of 5 unique BST's. 1 3 3 2 1...
分类:其他好文   时间:2014-12-03 00:29:34    阅读次数:136
SPOJ 12943. Counting, dp ,巧妙
Given integers N and M, output in how many ways you can take N distinct positive integers such that sum of those integers is M. Since result can be huge, output it modulo 1000000007 (10^9 + 7) N ...
分类:其他好文   时间:2014-12-03 00:24:54    阅读次数:230
【LeetCode】Unique Binary Search Trees (2 solutions)
Unique Binary Search TreesGivenn, how many structurally uniqueBST's(binary search trees) that store values 1...n?For example,Givenn= 3, there are a to...
分类:其他好文   时间:2014-12-02 19:12:48    阅读次数:175
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!