摘要: Time Limit: 5 Sec Memory Limit: 256 MBSec Special JudgeSubmit: 293 Solved: 144[Submit][Status][Discuss] Description 给定一棵有n个节点的树,相邻两点之间的距离为1。 请找到一个点x,使其满足所有m条限制,其中第i条限制为dist(x,a[i])+dist(x,b[i]) #in... 阅读全文
posted @ 2017-10-13 17:47 小米狐 阅读(462) 评论(0) 推荐(0) 编辑
摘要: Time Limit: 1000MSMemory Limit: 65536K Total Submissions: 19026Accepted: 8466 Description The Genographic Project is a research partnership between IB 阅读全文
posted @ 2017-10-13 16:44 小米狐 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 【问题描述】 你是能看到第三题的friends呢。——aoao 树是个好东西,删掉树一条边要1的代价,随便再加一条边有1的代价,求最小的代价把树变成环。【输入格式】 第一行一个整数,代表树的点数。接下来−1行,每行两个数代表树的一条边。【输出格式】 一行一个整数代表答案。【样例输入】 41 22 3 阅读全文
posted @ 2017-10-13 16:23 小米狐 阅读(301) 评论(0) 推荐(0) 编辑
摘要: 【问题描述】 假设这是一个二次元。LYK召集了n个小伙伴一起来拍照。他们分别有自己的身高Hi和宽度Wi。为了放下这个照片并且每个小伙伴都完整的露出来,必须需要一个宽度为ΣWi,长度为max{Hi}的相框。(因为不能叠罗汉)。LYK为了节省相框的空间,它有了绝妙的idea,让部分人躺着!一个人躺着相当 阅读全文
posted @ 2017-10-13 15:09 小米狐 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 【问题描述】你是能看到第二题的friends呢。——laekovHja和Yjq在玩游戏,这个游戏中Hja给了Yjq两个数,希望Yjq找到一些非负整数使得这些数的和等于n,并且所有数模maaaaaaaaaaaaaa 的值互不相同,求方案数。【输入格式】一行两个整数。【输出格式】一行一个整数代表答案对取 阅读全文
posted @ 2017-10-13 14:05 小米狐 阅读(352) 评论(1) 推荐(0) 编辑
摘要: time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output You are given an array of n integer numbe 阅读全文
posted @ 2017-10-13 09:40 小米狐 阅读(179) 评论(0) 推荐(0) 编辑
摘要: time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Hideo Kojima has just quit his job at Kon 阅读全文
posted @ 2017-10-13 08:37 小米狐 阅读(174) 评论(0) 推荐(0) 编辑
摘要: time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Polycarp takes part in a math show. He is 阅读全文
posted @ 2017-10-13 08:25 小米狐 阅读(225) 评论(0) 推荐(0) 编辑
摘要: time limit per test 2 seconds memory limit per test 512 megabytes input standard input output standard output Adieu l'ami. Koyomi is helping Oshino, a 阅读全文
posted @ 2017-10-13 07:52 小米狐 阅读(213) 评论(0) 推荐(0) 编辑
TOP