2012年8月14日

hdu 4358

摘要: 题目:http://acm.hdu.edu.cn/showproblem.php?pid=4358题解:先将树形结构转化成线性结构,这样问题就可以转化为求一个区间内,恰好出现K次的权值有多少种。利用树状数组记录K次的种数.View Code #include<stdio.h>#include<string.h>#include<iostream>#include<algorithm>#include<vector>#define lowbit(x) (x)&(-x)using namespace std;const int m 阅读全文

posted @ 2012-08-14 20:03 aigoruan 阅读(216) 评论(0) 推荐(0)

导航