Loading

上一页 1 ··· 48 49 50 51 52 53 54 55 56 ··· 75 下一页
摘要: Ashish has a tree consisting of nn nodes numbered 11 to nn rooted at node 11 . The ii -th node in the tree has a cost aiai , and binary digit bibi is 阅读全文
posted @ 2020-06-01 23:18 脂环 阅读(221) 评论(0) 推荐(0) 编辑
摘要: Ayush and Ashish play a game on an unrooted tree consisting of nn nodes numbered 11 to nn. Players make the following move in turns: Select any leaf n 阅读全文
posted @ 2020-06-01 20:43 脂环 阅读(306) 评论(0) 推荐(1) 编辑
摘要: Shubham has a binary string ss. A binary string is a string containing only characters "0" and "1". He can perform the following operation on the stri 阅读全文
posted @ 2020-06-01 10:48 脂环 阅读(499) 评论(0) 推荐(0) 编辑
摘要: A. Odd Selection time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Shubham has an array aa 阅读全文
posted @ 2020-06-01 10:44 脂环 阅读(471) 评论(0) 推荐(0) 编辑
摘要: 坑比输入,比赛时没A掉可惜了 题目描述 这里有一棵树,每个点和每条边都存在一个价值。对于树上点对的价值,包括点对的起点和终点以及路径上边权值之和,不包括路径上其他点值。 求这颗树上最大的点对价值为多少。点对至少需要两个点。 输入描述: 输入t,代表有t组样例。每组样例第一行输入n,代表有n个点。接下 阅读全文
posted @ 2020-05-31 21:02 脂环 阅读(170) 评论(0) 推荐(0) 编辑
摘要: https://ac.nowcoder.com/acm/contest/5758#description 做的迟了+只会水题.jpg 剩下的咕咕咕慢慢补 A. 题目描述 这里有一棵树,每个点和每条边都存在一个价值。对于树上点对的价值,包括点对的起点和终点以及路径上边权值之和,不包括路径上其他点值。 阅读全文
posted @ 2020-05-31 17:33 脂环 阅读(440) 评论(0) 推荐(0) 编辑
摘要: During the quarantine, Sicromoft has more free time to create the new functions in "Celex-2021". The developers made a new function GAZ-GIZ, which inf 阅读全文
posted @ 2020-05-27 11:04 脂环 阅读(474) 评论(2) 推荐(1) 编辑
摘要: You've been in love with Coronavirus-chan for a long time, but you didn't know where she lived until now. And just now you found out that she lives in 阅读全文
posted @ 2020-05-27 10:40 脂环 阅读(419) 评论(0) 推荐(0) 编辑
摘要: Maria is the most active old lady in her house. She was tired of sitting at home. She decided to organize a ceremony against the coronavirus. She has 阅读全文
posted @ 2020-05-27 09:47 脂环 阅读(334) 评论(0) 推荐(0) 编辑
摘要: Due to the coronavirus pandemic, city authorities obligated citizens to keep a social distance. The mayor of the city Semyon wants to light up Gluharn 阅读全文
posted @ 2020-05-27 09:36 脂环 阅读(464) 评论(0) 推荐(0) 编辑
上一页 1 ··· 48 49 50 51 52 53 54 55 56 ··· 75 下一页