摘要:
D. Marcin and Training Camp 题目链接:http://codeforces.com/contest/1230/problem/D time limit per test: 3 seconds memory limit per test: 256 megabytes inpu 阅读全文
摘要:
C. Anadi and Domino 题目链接:http://codeforces.com/contest/1230/problem/C time limit per test: 2 seconds memory limit per test: 256 megabytes input: stand 阅读全文
摘要:
倍增算法: 每个数都可以用二进制表示,2^30是一个很大的数,所以可以从二进制的第三十位开始,往后找,可以根据条件找到最大最合适的数。 例题: C - Closest Common Ancestors Write a program that takes as input a rooted tree 阅读全文
摘要:
The King’s Ups and Downs 关于公式推导的动态规划 The king has guards of all different heights. Rather than line them up in increasing or decreasing height order, 阅读全文