码迷,mamicode.com
首页 >  
搜索关键字:hdu 1247 hats words    ( 33109个结果
HDU 4502吉哥系列故事——临时工计划 和 《尼克的任务》
吉哥系列故事——临时工计划Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 2794 Accepted Submission(s): 1...
分类:其他好文   时间:2014-06-02 10:12:26    阅读次数:202
hdu 3790 最短路径问题(两个限制条件的最短路)
http://acm.hdu.edu.cn/showproblem.php?pid=3790有两个条件:距离和花费。首先要求距离最短,距离相等的条件下花费最小。dijkstra,仅仅是在推断条件时多考虑了花费。注意重边。#include #include #include #include #inc...
分类:其他好文   时间:2014-06-02 08:33:36    阅读次数:326
HDU 4504
威威猫系列故事——篮球梦Time Limit: 300/100 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 2964 Accepted Submission(s): 762P...
分类:其他好文   时间:2014-06-02 05:44:27    阅读次数:208
HDU 4501 多维背包
小明系列故事——买年货Time Limit: 5000/2000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 2261 Accepted Submission(s): 101...
分类:其他好文   时间:2014-06-01 17:13:35    阅读次数:295
hdu 4786 Fibonacci Tree
题目:大致的意思就是说给定...
分类:其他好文   时间:2014-06-01 16:22:52    阅读次数:259
【leetcode】 Text Justification
问题: 给定一个字符串数组words,一个整数L,将words中的字符串按行编辑,L表示每行的长度。 要求: 1)每个单词之间至少是有一个空格隔开的。 2)最后一行每个单词间只间隔一个空格, 最后一个单词后不足L长度的用空格填充。 3)除最后一行外,其他行进行填充长度的空格要均分,不能均分的,将余数代表的空格数依次填充在行左。 For example, words: ["Th...
分类:其他好文   时间:2014-06-01 15:43:03    阅读次数:297
HDU 4836 The Query on the Tree lca || 欧拉序列 || 动态树
lca的做法还是很明显的,简单粗暴, 不过不是正解,如果树是长链就会跪,直接变成O(n)、、 最后跑的也挺快,出题人还是挺阳光的。。 #include #include #include #include #include #include #include #include #include #include #include #include #inclu...
分类:其他好文   时间:2014-06-01 15:39:05    阅读次数:256
HDU - 4814 Golden Radio Base (长春赛区B题)
Description Golden ratio base (GRB) is a non-integer positional numeral system that uses the golden ratio (the irrational number (1+√5)/2 ≈ 1.61803399 symbolized by the Greek letter φ) as its base....
分类:其他好文   时间:2014-06-01 15:38:24    阅读次数:252
HDU 4839 The Game of Coins 概率题。(母函数
The Game of Coins mark: #include"cstdio" #include"iostream" #include"queue" #include"algorithm" #include"set" #include"queue" #include"cmath" #include"string.h" #include"vector...
分类:其他好文   时间:2014-06-01 13:58:31    阅读次数:196
【leetcode】Substring with Concatenation of All Words
题目: 给定一个字符串S,一个字符串数组L,找出S中所有这样的子串起点,该子串包含L中的所有元素。 说明: 1)L中存在重复的元素 2)子串不允许间断,即子串从开始到找全L中的所有元素之前,子串中不允许包含L以外的东西,而且,即使当前处理的子串是L中含有的,但是前面已经找够了,这个多余的也是不合法的,若此时还有L中的其他元素没找到,从这个起点开始也是不成功的。 3)L在S中出现的...
分类:其他好文   时间:2014-06-01 12:54:53    阅读次数:192
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!