The more, The Better Time Limit: 6000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 12033 Accepted Submission(s) ...
分类:
其他好文 时间:
2021-02-26 12:53:14
阅读次数:
0
状态表示: dp[len][sta]表示当前第len位,上一位为last的情况下满足条件的数的个数。 int f[15][10]; int a[15]; int l,r; int dfs(int len,int last,bool limit) { if(!len) return 1; if(!li ...
分类:
其他好文 时间:
2021-02-22 12:12:38
阅读次数:
0
git tag -a "obj-v1.1.4" -m "rows read" git push --follow-tags 未执行 git add 操作 git restore file_name、git checkout -- file_name 或者 git reset --hard HEAD ...
分类:
其他好文 时间:
2021-02-22 11:46:41
阅读次数:
0
文章中若有不严谨或错误的地方,欢迎在评论中指出QAQ Description 题目链接 这是一道交互题,题目给出长度为 \(n\) 的数组 \(a\) ,每次查询的格式为 "? \(l\) \(r\)",其中 \(l\) 和 \(r\) 为查询的区间左端点和右端点,注意 \(l \le r\)。你会 ...
分类:
其他好文 时间:
2021-02-20 12:08:17
阅读次数:
0
61~70关61关condensecondense [con·dense || k?n'dens] v. 使浓缩, 缩短, 摘要; 浓缩, 凝结dense [dens] adj. 密集的; 浓厚的(a) very heavy in relation to each unit of volume 密度 ...
分类:
其他好文 时间:
2021-02-19 13:30:48
阅读次数:
0
Problem Description Bruce Force has had an interesting idea how to encode strings. The following is the description of how the encoding is done:Let x1 ...
分类:
其他好文 时间:
2021-02-19 13:18:41
阅读次数:
0
All parts of the construction waste mobile stone crusher are vehicle-mounted. The turning radius is relatively small and the mobility is very strong. ...
分类:
其他好文 时间:
2021-02-19 13:03:42
阅读次数:
0
(1) It Has To Work. (2) No matter how hard you push and no matter what the priority, you can't increase the speed of light. (2a) (corollary). No matte ...
分类:
Web程序 时间:
2021-02-18 13:21:47
阅读次数:
0
考虑边分治。 边分治的时候考虑跨过中心边的点对 \((x,y)\) 的答案。考虑到 \(d_x+d_y-d_{lca(x,y)}\) 其实是 \(\frac{1}{2}(dix(x,y)+d_x+d_y)\) ,这下就跟 \(lca\) 没关系了。 显然在边分治的过程中 \(dis(x,y)\) 也 ...
分类:
其他好文 时间:
2021-02-17 14:59:55
阅读次数:
0
CF802I Fake News (hard) 这个题和 CF123D 很像,代码只有一点点不同。 首先看到子串的问题容易想到后缀数组,所以我们可以先对字符串求一遍后缀数组以及 height 数组。 接下来怎么做?哦们其实可以想得到单调栈。我们可以考虑对于 height 数组维护一个单调递增的栈。一 ...
分类:
编程语言 时间:
2021-02-17 14:52:34
阅读次数:
0