Little BracketsTime Limit: 2 Seconds Memory Limit: 65536 KBConsider all regular bracket sequences with one type of brackets. Let us call the depth of the sequence the maximal difference b
原创
2022-09-07 11:34:50
124阅读
Think PositiveTime Limit:5 Seconds Memory Limit:32768 KBIt is well known, that the yea are
原创
2022-09-07 11:39:04
84阅读
Andrew Stankevich Contest
原创
2022-08-11 15:34:10
38阅读
ACdream 1210 Chinese Girls' Amusement (规律+数学)【题意】:求最大的k如
原创
2022-07-29 13:39:11
191阅读
题意:定义红黑树如下:只有红点和黑点的二叉树,红点的儿子必须为黑点;从根出发到任意一个不足两个儿子的点,经过的黑点个数定义为black height。问n个点,black height小于等于H的红黑树种类数,答案对258280327取模 设F[i][j]表示根节点为红色,包含i个节点,black ...
转载
2021-08-23 19:28:00
65阅读
2评论
F Restore the Tree一棵树有n个叶子,已知叶子间两两的距离,求这棵树的一个构造方案。 我的做法: (已经被查出反
原创
2017-09-15 16:18:28
31阅读
F Roads 某个国家有石头路和烂泥路,石头路恰好是生成树,维护路自然是花钱的,现在希望通过修改路的维护费用使得石
原创
2017-08-23 21:45:17
51阅读