摘要:
【题目链接】:http://www.lydsy.com/JudgeOnline/problem.php?id=1005【题意】 中文题 【题解】 一棵节点上标有序号的树会和一个prufer数列唯一对应; 这个prufer数列可以这样获得; 每次找到序号最小的叶子节点; 然后把它删... 阅读全文
posted @ 2017-10-04 18:45
AWCXV
阅读(239)
评论(0)
推荐(0)
摘要:
Time Limit: 1 second Memory Limit: 256 MB【问题描述】N头牛要去参加一场在编号为X(1≤X≤n)的牛的农场举行的派对(1≤N≤1000),有M(1≤M≤100000)条有向道路,每条路长ti(1≤ti≤100);每头牛都必须参加完派对后回到家,... 阅读全文
posted @ 2017-10-04 18:45
AWCXV
阅读(113)
评论(0)
推荐(0)
摘要:
【题目链接】:http://www.lydsy.com/JudgeOnline/problem.php?id=1004【题意】 给你sr+sb+sg张牌,(令n=sr+sb+sg),让你把这n张牌染成3种颜色(红蓝绿),且红色sr张,蓝色sb张,绿色sg张; 同时再给你m个变化关系... 阅读全文
posted @ 2017-10-04 18:45
AWCXV
阅读(146)
评论(0)
推荐(0)
摘要:
【题目链接】:http://www.lydsy.com/JudgeOnline/problem.php?id=1002【题意】 让你把这个图通过删边操作搞成一棵树; 问方案数; 【题解】 先写个小规模的爆搜然后找规律; (爆搜程序在最下面)a[1..10]=15164512132... 阅读全文
posted @ 2017-10-04 18:45
AWCXV
阅读(115)
评论(0)
推荐(0)
摘要:
Time Limit: 1 second Memory Limit: 50 MB【问题描述】Tom最近在研究一个有趣的排序问题。如图所示,通过2个栈S1和S2,Tom希望借助以下4种操作实现将输入序列升序排序。操作a如果输入序列不为空,将第一个元素压入栈S1操作b如果栈S1不为空,将... 阅读全文
posted @ 2017-10-04 18:45
AWCXV
阅读(161)
评论(0)
推荐(0)
摘要:
【题目链接】:http://noi.qz5z.com/viewtask.asp?id=b704 &&http://www.lydsy.com/JudgeOnline/problem.php?id=1999【题意】 给你一棵树; 让你找出所有的直径; 并在这些直径上面选取连续的一段;... 阅读全文
posted @ 2017-10-04 18:45
AWCXV
阅读(128)
评论(0)
推荐(0)
摘要:
time limit per test4 seconds memory limit per test256 megabytes inputstandard input outputstandard output Mahmoud wants to write a new diction... 阅读全文
posted @ 2017-10-04 18:45
AWCXV
阅读(170)
评论(0)
推荐(0)
摘要:
time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Mahmoud wrote a message s of length ... 阅读全文
posted @ 2017-10-04 18:45
AWCXV
阅读(216)
评论(0)
推荐(0)
摘要:
time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Mahmoud has n line segments, the i-t... 阅读全文
posted @ 2017-10-04 18:45
AWCXV
阅读(253)
评论(0)
推荐(0)
摘要:
time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output While Mahmoud and Ehab were practici... 阅读全文
posted @ 2017-10-04 18:45
AWCXV
阅读(210)
评论(0)
推荐(0)

浙公网安备 33010602011771号