摘要:
"洛咕" 题意:已知$n(n include include include include include include include define ll long long using namespace std; inline int read(){ int x=0,o=1;char ch 阅读全文
摘要:
"洛咕" 题意:给你一片森林,每次询问一个点与多少个点拥有共同的$K$级祖先.$n,m include include include include include include include define ll long long using namespace std; inline in 阅读全文
摘要:
"洛咕" 题意:给定一个以1为根的n个节点的树,每个点上有一个字母$(a z)$,每个点的深度定义为该节点到1号节点路径上的点数.每次询问 $a,b$ 查询以$a$为根的子树内深度为$b$的节点上的字母重新排列之后是否能构成回文串.$n,m include include include inclu 阅读全文
摘要:
"洛咕" 题意:一棵树有$n(n include include include include include include include define ll long long using namespace std; inline int read(){ int x=0,o=1;char 阅读全文
摘要:
"洛咕" 题意:有n种材料,每种材料可以被做成汉式菜肴和满式菜肴中的一种,有m个评委,每个评委喜欢两种菜肴(汉式和满式任意,材料任意),求能否做两个菜肴使得满足每个评委的至少一个条件.($n include include include include include include includ 阅读全文