随笔分类 - dp
1
摘要:"题目链接" 题意:给出一个 $n$ 个结点的树,问如何选择结点进行连线使得结点$1$到其他所有结点的最短距离都小于等于 $2$ 。 题解:这道题倒是自己想出来了。 首先有个结论:连线都是从结点1向其他结点连线,因为这样总是最优的。 由题意可知,当结点$1$向某个节点 $u$ 连线后,与结点 $u$
阅读全文
摘要:"题目链接" Partial Tree Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others) Total Submission(s): 1577 Accepted Submission(s
阅读全文
摘要:"题目链接" E. Table Compression time limit per test4 seconds memory limit per test256 megabytes inputstandard input outputstandard output Little Petya is
阅读全文
摘要:"题目链接" La Vie en rose Time Limit: 7000/3500 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 3188 Accepted Submission(s
阅读全文
摘要:题目链接 E. The Great Mixing time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Sasha and Kolya deci
阅读全文
摘要:"题目链接" E. Liar time limit per test4 seconds memory limit per test256 megabytes inputstandard input outputstandard output The first semester ended. You
阅读全文
摘要:"题目链接" C. Ilya And The Tree time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Ilya is very fon
阅读全文
摘要:题目链接 Big binary tree Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 250 Accepted Submission(s):
阅读全文
该文被密码保护。
该文被密码保护。
该文被密码保护。
该文被密码保护。
该文被密码保护。
1

浙公网安备 33010602011771号