构造
文章平均质量分 86
Niconicoqaq
这个作者很懒,什么都没留下…
展开
-
AtCoder Regular Contest 103 D - Robot Arms
D - Robot Arms Time limit : 2sec / Memory limit : 1024MB Score : 600 points Problem Statement Snuke is introducing a robot arm with the following properties to his factory: The robot arm consists...原创 2018-10-02 20:13:53 · 441 阅读 · 0 评论 -
Codeforces Beta Round #37 C. Old Berland Language dfs+构造
题面 :https://codeforces.com/problemset/problem/37/C 题意 : 给出一些长度,让你只用0,1构造出这些长度的串,使得没有一个串是另一个的前缀. 题解 : 感觉自己已经废了,我竟然想着怎样把这些串一个一个dfs,还在考虑用map来判断该串是否出现过。把长度排序,然后一次dfs,若出现了我们当前要的最小的长度,就存下来,然后直接return,因为之...原创 2019-07-16 14:22:00 · 157 阅读 · 0 评论