摘要:
problem A 题意:三个怪兽,每次选一个怪兽造成一点伤害,第7的倍数次攻击改为对所有怪兽造成一点伤害,问能否一次性消灭三个怪兽 题解:sum是9的倍数且每个数不小于sum/9 证明:不难发现最简单的情况就是操作6次使得三个数都变成111然后再全部-1。考虑到多次的全部-1对这个最终态其实是没影 阅读全文
摘要:
POJ1330 Nearest Common Ancestors Description A rooted tree is a well-known data structure in computer science and engineering. An example is shown bel 阅读全文