上一页 1 2 3 4 5 6 7 8 9 10 ··· 18 下一页
摘要: /********************** author: yomi date: 18.8.14 ps:入门题果然很简单, 我觉得比选数,选物品什么的简单多了呀。 只要控制好递归边界和递归式就没问题。 **********************/ #include #include #include using namespace std; int n, m, ans = 0;... 阅读全文
posted @ 2018-08-14 19:15 深圳地铁Princess 阅读(149) 评论(0) 推荐(0)
摘要: Lake Counting Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 45142 Accepted: 22306 Description Due to recent rains, water has pooled in va 阅读全文
posted @ 2018-08-14 19:02 深圳地铁Princess 阅读(244) 评论(0) 推荐(0)
摘要: 题目描述 已知 n 个整数b1,b2,…,bn 以及一个整数 k(k<n)。 从 n 个整数中任选 k 个整数相加,可分别得到一系列的和。 例如当 n=4,k=3,4 个整数分别为 3,7,12,19 时,可得全部的组合与它们的和为: 3+7+12=22 3+7+19=29 7+12+19=38 3 阅读全文
posted @ 2018-08-06 18:58 深圳地铁Princess 阅读(373) 评论(1) 推荐(0)
摘要: Given two sets of integers, the similarity of the sets is defined to be N~c~/N~t~*100%, where N~c~ is the number of distinct common numbers shared by 阅读全文
posted @ 2018-08-02 19:43 深圳地铁Princess 阅读(173) 评论(0) 推荐(0)
摘要: 问题 A: 简单计算器 题目描述 读入一个只包含 +, -, *, / 的非负整数计算表达式,计算该表达式的值。 读入一个只包含 +, -, *, / 的非负整数计算表达式,计算该表达式的值。 输入 测试输入包含若干测试用例,每个测试用例占一行,每行不超过200个字符,整数和运算符之间用一个空格分隔 阅读全文
posted @ 2018-07-30 19:41 深圳地铁Princess 阅读(653) 评论(0) 推荐(0)
摘要: 这个问题是对新手来说比较头疼的问题了。 虽然没什么难度,但是得搜到好的教程才行。😂 加上doGet中的前两行即可 问题解决。 阅读全文
posted @ 2018-07-07 19:50 深圳地铁Princess 阅读(253) 评论(0) 推荐(0)
摘要: 使用request.getRemoteAddr(),如题。 预期结果是127.0.0.1 其实是这样的。 0:0:0:0:0:0:0:1是ipv6的表现形式,对应ipv4来说相当于127.0.0.1,也就是本机。 C:\Windows\System32\drivers\etc\hosts这个文件中的 阅读全文
posted @ 2018-07-05 15:35 深圳地铁Princess 阅读(630) 评论(0) 推荐(0)
摘要: 根本原因就是c3p0的配置文件中没有指定字符集,指定UTF-8编码即可。 下面说一下方法,这同我们使用JDBC时写的url是大同小异的。但是要注意由于是在.xml中更改配置,我们所更改的 配置必须得服从.xml的编写规则。所以得用&代替&,否则报错。 阅读全文
posted @ 2018-07-04 18:53 深圳地铁Princess 阅读(260) 评论(0) 推荐(0)
摘要: Given an increasing sequence S of N integers, the median is the number at the middle position. For example, the median of S1 = { 11, 12, 13, 14 } is 1 阅读全文
posted @ 2018-06-27 22:37 深圳地铁Princess 阅读(167) 评论(0) 推荐(0)
摘要: 1049 Counting Ones (30)(30 分) The task is simple: given any positive integer N, you are supposed to count the total number of 1's in the decimal form 阅读全文
posted @ 2018-06-25 13:43 深圳地铁Princess 阅读(137) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 18 下一页