public string chang(string money) { //将小写金额转换成大写金额 double MyNumber = Convert.ToDouble(money); Stri...
分类:
其他好文 时间:
2015-08-19 10:58:11
阅读次数:
151
第一次发博。 - -刚无聊看到群里一位朋友在提问,大晚上没人解答,遂自己默默打开了VS,敲起了代码。问题:请问怎么将集合newFoods中Name含有"包子"的Number+1,LINQ可以一句话写出来 ?List newFoods = new List{ new Food { Money =...
分类:
其他好文 时间:
2015-08-19 01:58:49
阅读次数:
101
POJ 1251 Jungle RoadsDescription
The Head Elder of the tropical island of Lagrishan has a problem. A burst of foreign aid money was spent on extra roads between villages some years ago. But the jung...
分类:
其他好文 时间:
2015-08-17 21:54:22
阅读次数:
107
Curious
Robin Hood
Robin Hood likes to loot rich people since he helps the poor people with this money. Instead of keeping all the money together he does another trick. He keeps n sacks where h...
分类:
编程语言 时间:
2015-08-17 19:38:35
阅读次数:
172
目录(?)[+]事务提交或回滚常见的事务指令事务的特点ACID触发器创建触发器管理触发器事务create table swpu(id int primary key auto_increment,money decimal(10,2) comment '学费');insert into swpu v...
分类:
数据库 时间:
2015-08-17 13:55:54
阅读次数:
187
hdu 1203 01背包 I need a offer题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1203题目大意:给你每个学校得到offer的概率以及花费,给定money,求得到至少一份offer的最大概率。简单的01背包 1 #include ...
分类:
其他好文 时间:
2015-08-15 17:58:03
阅读次数:
107
本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/47680663
You are a professional robber planning to rob houses along a street. Each house has a certain amount of money...
分类:
其他好文 时间:
2015-08-15 13:34:40
阅读次数:
208
题目链接题意: 抢银行(这个背景最爱了), 有n家银行, 每家银行抢劫被抓的概率是p[i],你认为当你被抓的概率低于P的时候是安全的。 问, 你最多能抢劫到多少money。思路: 抽象成背包问题, 每家银行只有两种选择, 要么抢, 要么不抢。 被抓的概率有点难求, 因为还要考虑之前没有被抓。...
分类:
其他好文 时间:
2015-08-12 23:10:09
阅读次数:
118
:http://bbs.pinggu.org/forum-103-1.htmlhttp://tieba.baidu.com/f?kw=%B8%BB%BA%C0http://bbs.icxo.com/forum-1952-1.htmlmsn: http://money.msn.com.cn/rich/...
分类:
其他好文 时间:
2015-08-12 00:58:06
阅读次数:
186
CREATE?PROCEDURE?`hejin`.`pro_redeem_check`(IN?gpid?int)
BEGIN
SLELECT?SUM(amount)?INTO?@money?FROM?assets?WHERE?gpid?=?gpid;
SLELECT?@money;
END @money 一直是所有的总和而不是gpid的总...
分类:
数据库 时间:
2015-08-11 19:30:16
阅读次数:
224