构造
文章平均质量分 69
HandsomeHow
暂无
展开
-
codeforces 709 D Recover the String (构造)
D. Recover the String time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output For each string s consisting of charac原创 2016-09-06 17:09:53 · 684 阅读 · 0 评论 -
HDU 5573 Binary Tree 构造
链接:http://acm.hdu.edu.cn/showproblem.php?pid=5573 思路:首先,我们要知道,用1,2,4,...2^(n-1)能构造出所有的1~2^n-1的数,所以我们一直走最左边的路就好了,当然,根据奇偶性要在最后一步调整下. 然后我们在第i层选正负怎么办呢,我们就假设是正的,那么我们就要用1,2...2^(i-1)构造出n-2^i,如果构造不出来,那就取负的原创 2016-10-05 17:28:16 · 377 阅读 · 0 评论 -
codeforces 743 C. Vladik and fractions(构造)
C. Vladik and fractions time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Vladik and Chloe decided to determin原创 2016-12-15 14:00:03 · 730 阅读 · 0 评论