摘要: 区间的价值 我们定义“区间的价值”为一段区间的最大值*最小值。 一个区间左端点在L,右端点在R,那么该区间的长度为(R-L+1)。 现在聪明的杰西想要知道,对于长度为k的区间,最大价值的区间价值是多少。 当然,由于这个问题过于简单。 我们肯定得加强一下。 我们想要知道的是,对于长度为1~n的区间,最 阅读全文
posted @ 2017-10-17 19:12 JSC! 阅读(268) 评论(0) 推荐(0) 编辑
摘要: D. Sorting the Coins time limit per test 1 second memory limit per test 512 megabytes input standard input output standard output Recently, Dima met w 阅读全文
posted @ 2017-10-17 18:45 JSC! 阅读(318) 评论(0) 推荐(0) 编辑
摘要: C. Classroom Watch time limit per test 1 second memory limit per test 512 megabytes input standard input output standard output C. Classroom Watch tim 阅读全文
posted @ 2017-10-17 18:43 JSC! 阅读(163) 评论(0) 推荐(0) 编辑
摘要: B. Divisiblity of Differences time limit per test 1 second memory limit per test 512 megabytes input standard input output standard output B. Divisibl 阅读全文
posted @ 2017-10-17 18:42 JSC! 阅读(282) 评论(0) 推荐(0) 编辑
摘要: A. Trip For Meal time limit per test 1 second memory limit per test 512 megabytes input standard input output standard output A. Trip For Meal time li 阅读全文
posted @ 2017-10-17 18:40 JSC! 阅读(385) 评论(0) 推荐(0) 编辑
摘要: 2761: [JLOI2011]不重复数字 Description 给出N个数,要求把其中重复的去掉,只保留第一次出现的数。 例如,给出的数为1 2 18 3 3 19 2 3 6 5 4,其中2和3有重复,去除后的结果为1 2 18 3 19 6 5 4。 给出N个数,要求把其中重复的去掉,只保留 阅读全文
posted @ 2017-10-17 15:08 JSC! 阅读(180) 评论(0) 推荐(0) 编辑