上一页 1 ··· 125 126 127 128 129 130 131 132 133 ··· 223 下一页
摘要: 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 阅读(185) 评论(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 阅读(144) 评论(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 阅读(205) 评论(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 阅读(256) 评论(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 阅读(279) 评论(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 阅读(237) 评论(0) 推荐(0)
摘要: 【题目链接】:http://www.lydsy.com/JudgeOnline/problem.php?id=1009【题意】 【题解】 网上有几个博客写得挺好的. 这里发一下链接; 这一篇有把大概怎么做写下来; http://www.cnblogs.com/BLADEVIL/p/... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(191) 评论(0) 推荐(0)
摘要: Time Limit: 1 second Memory Limit: 128 MB【问题描述】小明要搬家了,大家都来帮忙。 小明现在住在第N楼,总共K个人要把X个大箱子搬上N楼。 最开始X个箱子都在1楼,但是经过一段混乱的搬运已经乱掉了。最后大家发现这样混乱地搬运过程效率太低了,于是... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(189) 评论(0) 推荐(0)
摘要: 【题目链接】:http://www.lydsy.com/JudgeOnline/problem.php?id=1008【题意】 【题解】 相邻就会犯罪的话; 可以考虑它的反面; 即让所有相同信仰的人都不相邻; 第一个位置的人的信仰任意,第二个人在第一个人的基础上少一个; 即m-1,... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(144) 评论(0) 推荐(0)
摘要: Time Limit: 1 second Memory Limit: 50 MB【问题描述】佳佳刚进高中,在军训的时候,由于佳佳吃苦耐劳,很快得到了教官的赏识,成为了“小教官”。在军训结束的那天晚上,佳佳被命令组织同学们进行篝火晚会。一共有n个同学,编号从1到n。一开始,同学们按照1... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(132) 评论(0) 推荐(0)
上一页 1 ··· 125 126 127 128 129 130 131 132 133 ··· 223 下一页