Shoemaker's Problem 本题为贪心算法题,不要想多了,就只是一个贪心算法。       一个"鞋匠",有n件工作要做,每件工作需要做Ti天,从第一天开始,到开始做该工作的这段时间,每天要付Si元费用。问按怎样一个顺序做能让鞋匠付的钱最少。      
原创 2013-09-11 19:56:00
388阅读
今天学习asp.net遇到以下问题:   Compiler Error Message: BC30456: 'InitializeCulture' is not a member of  ...   经过一番搜索后得到以下结果:   Verify if you don't have web pages with the same"Inh
转载 精选 2008-07-20 10:48:08
1424阅读
Integer right trianglesProblem 39If p is the perimeter of a right angle triangle with integral length sides, {a,b,c}, there are exactly three solutions for p = 120.{20,48,52}, {24,45,51}
原创 2022-08-11 16:59:16
24阅读
copy the front-page of the www.51cto.com
转载 精选 2008-01-06 00:56:01
585阅读
If p is the perimeter of a right angle triangle with integral length sides, {a,b,c}, there are exactly three solutions for p = 120.{20,48,52}, {24,45,51}, {30,40,50}For which value of p ≤ 1000, is the
转载 2015-10-06 09:50:00
150阅读
2评论
Shoemaker's Problem Shoemaker has N jobs (orders from customers) which he must make. Shoemaker can work on only one job in each day. For each ith job,
转载 2017-04-18 10:55:00
64阅读
2评论
DescriptionProblem DThe Book-shelver’s ProblemInput: standard inputOutput: standard outputTime Limit: 5 secondsMemory Limit: 32 MBYou are given a coll...
转载 2014-10-07 17:58:00
56阅读
2评论
Bob's Problem Accepted : 114 Submit : 589 Time Limit : 1000 MS Memory Limit : 65536 KB 题目描写叙述 Bob今天碰到一个问题。他想知道x3+y3 = c 是否存在正整数解? 输入 第一行是一个整数K(K≤20000
转载 2017-08-20 16:09:00
27阅读
2评论
Today met another error:expected ';',',' or ')' before '&' token.This error was raised because I use reference (&) to pass arguments to a function. This is again not supported by C.Together wi
原创 2016-06-26 09:15:48
9460阅读
http://poj.org/problem?id=1681 求最少经过的步数使得输入的矩阵全变为y。 思路:高斯消元求出自由变元。然后枚举自由变元,求出最优值。 注意依据自由变元求其它解及求最优值的方法。 #include <stdio.h> #include <algorithm> #inclu
转载 2017-06-08 15:56:00
102阅读
2评论
Greedy. 证明: Let's say we have job 1, 2, ..., n, and they have time and fine as t1, f1, t2, f2, ..., tn, fn and they are in the order of t1/f1 <= t2/f2
转载 2017-07-09 09:11:00
46阅读
2评论
        又是匆匆的一年,悄然回首,2011得到的,失去的,欢乐的,酸楚的,每天都在交错。临近春节,将手头琐碎的工作整理一下,记录这一年自己走过的路,留住 这时光,让未来的我可以更好的审核自我。 2011年初,我决定改变自己的命运,寻找更好的生活、工作环境。离开上一家公司最根本原因,不是待遇问题,而是在小公司的打拼中,我看
原创 2012-01-13 17:56:33
652阅读
3点赞
4评论
&#39;or&#39;=&#39;or&#39;
原创 2010-02-26 15:43:34
553阅读
【>】  替换 【>>】追加 【1】   正确 【2】   错误  不要错误输出可采用2>/dev/dev/null   e.g mj@monitor ~]$ ls 123  456 [mj@monitor ~]$ ls 789 >>123  2>&g
原创 2011-03-21 14:47:22
605阅读
What are 'privileges' and 'permissions' ?权力和权限是什么?http://www.dslreports.com/faq/11221Many people get confused between 'privileges' and 'permissions' in Windows NT/2000/XP.In NT/2000/XP, a 'privilege'
转载 精选 2016-07-19 10:02:56
739阅读
这叫烦心啊! 星座运势:2006年03月23日 每日运势:水瓶座 ⊙综合指数:79% ⊙爱情指数:82% ⊙工作指数:68% ⊙财运指数:87% ⊙健康指数:77% ⊙幸运色:灰色 ⊙幸运数字:9 ⊙速配Q友:天蝎座 今日概述:  紧张的情绪,最适合听张蓝调音乐来放松一下。想制造些不一样的浪漫,就给情人来点神秘的惊喜
转载 2006-03-22 22:30:13
499阅读
在centos下安装好了mysql,用root帐号连上mysql,然后创建一个数据库,提示下图错误:  提示:ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'mysql'。网上找了一个比较流行的方法(见方法一),搞定了。今天又用这个试了试,却搞不定,在网上找了半天,终于发现是因为mysql数据库的 u
转载 2017-03-13 15:14:21
825阅读
我在Suse Linux 10.2下用自带光盘用Yast2安装Mysql 5.0, 装好后在终端输入mysql, mysql成功启动,退出,再输入 mysqladmin -u root password XXXXX, 出现错误: mysqladmin: connect to server at 'localhost' failederror: 'Access denied for user 'ro
转载 精选 2009-09-16 14:16:31
1184阅读
/*FXBlurView属性@property (nonatomic, getter = isBlurEnabled) BOOL blurEnabled;这个属性切换为个体FXBlurView实例模糊了。模糊是默认启用。注意,如果您使用+ setBlurEnabled方法禁用模糊那将会覆盖该设置。@property (nonatomic, getter = isDynamic) BOOL dyna
原创 2017-04-23 09:10:11
1364阅读
原因分析 因为创建视图使用的是root@%用户(目前已经不存在),然后登录用户使用的是test@localhost用户,导致mysql认为现在的test用户无权限访问该视图,解决方法就是在当前用户下test 重建该视图。 如果你是运维人员,此问题直接交由程序去处理,让其检查创建触发器、视图、存储过程等sql。如果包含root@%,替换之。重新创建。   结合一下命令,可以看个大概
原创 2012-03-27 11:10:00
2861阅读
  • 1
  • 2
  • 3
  • 4
  • 5