摘要: 题目描述: 有一天,pqq准备去给×i×准备礼物,他有一些礼品准备包装一下,他用线将这些礼物连在一起,不同的礼物因为风格不同所以连接它们需要不同价值的线。风格差异越大,价格越大(所以两个礼物之间只有一种连接价格),当然有些礼物实在太不友好,所以有些礼物无法相连。pqq打算把所有礼物打包在一起,他不准 阅读全文
posted @ 2018-07-17 19:58 Styx-ferryman 阅读(183) 评论(0) 推荐(0) 编辑
摘要: D. Alyona and a tree time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output D. Alyona and a tre 阅读全文
posted @ 2018-07-17 16:43 Styx-ferryman 阅读(364) 评论(0) 推荐(0) 编辑
摘要: Alyona decided to go on a diet and went to the forest to get some apples. There she unexpectedly found a magic rooted tree with root in the vertex 1, 阅读全文
posted @ 2018-07-17 08:22 Styx-ferryman 阅读(315) 评论(0) 推荐(0) 编辑