摘要:
"洛咕" 题意:一棵有根树,多次询问这棵树上一段路径上所有节点深度的$k$次方的和,每次的$k$可能是不同的.此处节点深度的定义是这个节点到根的路径上的边数.$n,m include include include include include include include define ll 阅读全文
摘要:
"BZOJ" 题意:给定一个大小为$n$的可重集合,求其所有子集的算术和的异或和.$n include include include include include include include include define ll long long using namespace std; b 阅读全文
摘要:
"洛咕" 题意:带点权修改的 询问树上路径第$K$大.$n,Q include include include include include include include define ll long long using namespace std; inline int read(){ in 阅读全文
摘要:
"POJ" 多组数据,给定$m$个长度为$n$的序列,从每个序列中取出一个数相加可以得到一个和,输出前n小的和.$n2$时,重复做$m 1$次上述操作即可.具体来说,每次得到的答案当做一个新的$a$序列,然后与读入的$b$序列进行上述操作. cpp include include include i 阅读全文
摘要:
"洛咕" 题意:给定一个$N N$的矩阵,每次询问一个子矩形内的第$K$小数.$n include include include include include include include define ll long long define rg register using namespa 阅读全文