摘要:
这道题做得有点醉,根本没明白题目什么意思....做了半天才发现不对....涉及到概率方面最基本的乘法定则...#include#includedouble dp[10001];double max(double a,double b){ if(a>b) return a; ... 阅读全文
posted @ 2015-04-15 18:04 tun~ 阅读(120) 评论(0) 推荐(0)
|
|
|
|
摘要:
这道题做得有点醉,根本没明白题目什么意思....做了半天才发现不对....涉及到概率方面最基本的乘法定则...#include#includedouble dp[10001];double max(double a,double b){ if(a>b) return a; ... 阅读全文
posted @ 2015-04-15 18:04 tun~ 阅读(120) 评论(0) 推荐(0)
摘要:
发票的额度是小数,但是只要求精确到两位,所以我们把初始数据乘以100进行处理。这道题我比较纠结的是dp的数组到底开多大...开大了内存超限,小了数组越界。#include#includeint val[50];//记录符合报销条件的发票的额度。(乘以100以后)int tmp[26];//临时记录发... 阅读全文
posted @ 2015-04-15 18:01 tun~ 阅读(95) 评论(0) 推荐(0) |
|