码迷,mamicode.com
首页 >  
搜索关键字:love you    ( 27955个结果
HDU 3033 I love sneakers! 分组背包
我是个逗比。。。真心不是搞算法的料 不太中规中矩的分组背包,分组至少选一件商品。dp[i][j] 可以由当前dp[i-1][j-c] 和 dp[ i ][j-c]更新得到。 #include #include #include #include #include #include #include #include #include #pragma comment(link...
分类:其他好文   时间:2014-05-10 09:10:20    阅读次数:301
hdu 3033 I love sneakers!(分组背包,每组至少取一件)
http://acm.hdu.edu.cn/showproblem.php?pid=3033 大致题意:某人要买鞋子,有k种鞋,要求每种鞋至少买一双,给出每双鞋子的花费和价值,问m元钱可以买到的鞋子的最大价值是多少。 思路:分组背包问题。与传统的分组背包不同:每组物品至少取一件;且每组中物品任意取。 想一想传统的分组背包,每组至多选一件: for 所有的组k     fo...
分类:其他好文   时间:2014-05-10 08:48:59    阅读次数:325
利用PHPExcel转Excel柱形图
这在附另一个转柱形图的效果及代码. 原PHP报表效果: 转成Excel后的效果: 附上代码: <?php /** * PHPExcel * * Copyright (C) 2006 - 2014 PHPExcel * * This library is free software; you can redistribute it and/or * modify ...
分类:Web程序   时间:2014-05-10 02:19:56    阅读次数:553
vlc播放器收听英文广播
以下是一些ABC Radio 的pls链接:vlc打开网络串流,输入pls链接,确定即可。Direct LinksIf you are unable to use our default players, you can use these links.Windows Audio StreamsAB...
分类:其他好文   时间:2014-05-08 21:01:30    阅读次数:446
iOS 打电话 发短信(转载)
官方代码发短息和邮件添加MessageUI.framework 库发送信息- (IBAction)showSMSPicker:(id)sender{ // You must check that the current device can send SMS messages before you ...
分类:移动开发   时间:2014-05-08 20:26:04    阅读次数:500
开发问题解决志
2014.5.5 获取客户端真实ip地址出现问题,解答如下: When you have NAT (Network Address Translation) device before your servlet containerrequest.getRemoteAddr()returns the....
分类:其他好文   时间:2014-05-07 19:02:49    阅读次数:261
android text
"@you bang--- go on -------"需要做分享内容,前面有段格式固定写死,同时颜色为灰色;后面的内容可以编辑,颜色为黑色,同时支持多行有人用textview做固定格式,edittext做可编辑部分;如果是单行,感觉还没多大问题,但多行,第二行起始位置就无法控制了。1.字体部分颜色...
分类:移动开发   时间:2014-05-07 17:37:11    阅读次数:493
水题~~~~HDU 4788
Description Yesterday your dear cousin Coach Pang gave you a new 100MB hard disk drive (HDD) as a gift because you will get married next year. But yo....
分类:其他好文   时间:2014-05-07 10:04:47    阅读次数:382
水题一枚
Description Given a code (not optimized), and necessary inputs, you have to find the output of the code for the inputs. The code is as follows: int a,...
分类:其他好文   时间:2014-05-07 09:56:16    阅读次数:310
Leetcode: Reverse Integer
一次通过,它的spoiler里面的提示有两个:1. 末尾为0的情况,这个考虑到了2.Did you notice that the reversed integer might overflow? Assume the input is a 32-bit integer, then the reve...
分类:其他好文   时间:2014-05-06 11:10:45    阅读次数:356
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!