随笔分类 - 其他
摘要:题目 "http://poj.org/problem?id=1723" 题解 带权中位数类型的题目~ 可以先考虑降维,最后集合的y坐标,明显是y坐标的中位数的位置,容易求出y方向的贡献res_y。比较麻烦的是在x坐标上最后是要列成一排,而不是单独的一个点,我们可以假设最后集合的最左边的点是x,采用贪
阅读全文
摘要:1、中文乱码 问题描述: 利用vs2008调试的时候正常,发布到IIS8.5上的时候,当查询语句中包含中文的时候会乱码,比如"select from tb where name='小s'",则到oracle数据库的时候会变成"select from tb where name='?s'" 解决方案:
阅读全文
摘要:题目链接: "http://codeforces.com/problemset/problem/421/D" D. Bug in Code time limit per test 1 secondmemory limit per test 256 megabytes 问题描述 Recently a
阅读全文
摘要:题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=5159 题解: 考虑没一个数的贡献,一个数一次都不出现的次数是(x-1)^b,而总的排列次数是x^b,所以每一个数有贡献的次数都是x^b-(x-1)^b,所以最后推导的公式就是: (x^b-(x-1)^
阅读全文
摘要:题目链接: hdu:http://acm.hdu.edu.cn/showproblem.php?pid=5671 bc(中文):http://bestcoder.hdu.edu.cn/contests/contest_chineseproblem.php?cid=692&pid=1001 题解: 由
阅读全文
摘要:题目链接: hdu:http://acm.hdu.edu.cn/showproblem.php?pid=5203 bc(chinese):http://bestcoder.hdu.edu.cn/contests/contest_chineseproblem.php?cid=575&pid=1002
阅读全文
摘要:题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=5496 Beauty of Sequence Problem Description Sequence is beautiful and the beauty of an integer sequenc
阅读全文