上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 29 下一页
摘要: 基准时间限制:1 秒 空间限制:131072 KB 分值: 40 难度:4级算法题 X轴上有N个点,每个点除了包括一个位置数据X[i],还包括一个权值W[i]。点P到点P[i]的带权距离 = 实际距离 * P[i]的权值。求X轴上一点使它到这N个点的带权距离之和最小,输出这个最小的带权距离之和。In 阅读全文
posted @ 2017-11-06 22:16 lemonsbiscuit 阅读(284) 评论(0) 推荐(0) 编辑
摘要: 1108 距离之和最小 V2基准时间限制:1 秒 空间限制:131072 KB 分值: 40 难度:4级算法题 收藏 关注三维空间上有N个点, 求一个点使它到这N个点的曼哈顿距离之和最小,输出这个最小的距离之和。点(x1,y1,z1)到(x2,y2,z2)的曼哈顿距离就是|x1-x2| + |y1- 阅读全文
posted @ 2017-11-06 18:41 lemonsbiscuit 阅读(618) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2686 思路:多线程dp,参考51Nod 1084:http://www.51nod.com/onlineJudge/questionCode.html#!problemId=1084 注:这道题用滚动数 阅读全文
posted @ 2017-11-06 17:46 lemonsbiscuit 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 基准时间限制:2 秒 空间限制:131072 KB 基准时间限制:2 秒 空间限制:131072 KB 基准时间限制:2 秒 空间限制:131072 KB 一个M*N矩阵中有不同的正整数,经过这个格子,就能获得相应价值的奖励,先从左上走到右下,再从右下走到左上。第1遍时只能向下和向右走,第2遍时只能 阅读全文
posted @ 2017-11-06 16:21 lemonsbiscuit 阅读(322) 评论(0) 推荐(0) 编辑
摘要: 你有一个大小为𝑆的𝐽𝑎𝑏𝑏𝑦,每次你可以从你已有的𝐽𝑎𝑏𝑏𝑦中选择一个大小不为1的𝐽𝑎𝑏𝑏𝑦,设他的大小为𝑄,然后把它分裂成𝑎和𝑄−𝑎,其中1≤𝑎<𝑄,这样你获得的收益是𝑎∗(𝑄−𝑎)给定 阅读全文
posted @ 2017-11-05 00:05 lemonsbiscuit 阅读(533) 评论(0) 推荐(0) 编辑
摘要: XYZZY Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 5304 Accepted Submission(s): 1510 Problem 阅读全文
posted @ 2017-11-04 22:53 lemonsbiscuit 阅读(204) 评论(0) 推荐(0) 编辑
摘要: A. Div. 64 time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Top-model Izabella participate 阅读全文
posted @ 2017-11-04 13:52 lemonsbiscuit 阅读(488) 评论(0) 推荐(0) 编辑
摘要: B. Cubes for Masha time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output B. Cubes for Masha tim 阅读全文
posted @ 2017-11-04 13:46 lemonsbiscuit 阅读(1062) 评论(0) 推荐(0) 编辑
摘要: 1018 排序基准时间限制:1 秒 空间限制:131072 KB 分值: 0 难度:基础题 收藏 关注给出N个整数,对着N个整数进行排序Input第1行:整数的数量N(1 #include#include#include#include#include#include#include#include... 阅读全文
posted @ 2017-11-03 01:43 lemonsbiscuit 阅读(66) 评论(0) 推荐(0) 编辑
摘要: 1012 最小公倍数LCM基准时间限制:1 秒 空间限制:131072 KB 分值: 0 难度:基础题 收藏 关注输入2个正整数A,B,求A与B的最小公倍数。Input2个数A,B,中间用空格隔开。(1#include#include#include#include#include#include#... 阅读全文
posted @ 2017-11-03 01:43 lemonsbiscuit 阅读(102) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 29 下一页