Code
- 23 Jul 2014
POJ 1247 Magnificent Meatballs
题目 源地址: http://poj.org/problem?id=1247 理解 让给的肉丸子少的人继续给,直到最后判断是否相等。 代码 ... - 22 Jul 2014
POJ 1218 THE DRUNK JAILER
题目 源地址: http://poj.org/problem?id=1218 理解 汗= =,偷鸡水过了,正好是牢房数的平方根向下取整,不过... - 22 Jul 2014
POJ 1163 The Triangle
题目 源地址: http://poj.org/problem?id=1163 理解 这是第一道关于DP的题目,据说是用暴力的方法会直接超时,... - 22 Jul 2014
POJ 1083 Moving Tables
题目 源地址: http://poj.org/problem?id=1083 理解 题目不难,关键在于理解题意。开一个数组,求出每一张桌子移... - 22 Jul 2014
POJ 1146 ID Codes
题目 源地址: http://poj.org/problem?id=1146 理解 使用STL里面的next_permutation轻松水掉... - 22 Jul 2014
POJ 1068 Parencodings
题目 源地址: http://poj.org/problem?id=1068 理解 模拟栈操作,主要是对题目意思的理解。 代码 #inclu... - 22 Jul 2014
POJ 2492 A Bug's Life
题目 源地址: http://poj.org/problem?id=2492 理解 当初学习并查集的时候做得题目,是一个比较经典的关于并查集... - 22 Jul 2014
POJ 1988 Cube Stacking
题目 源地址: http://poj.org/problem?id=1988 理解 这道题也想了很久。问题主要出在堆叠得过程中,我只考虑了根... - 22 Jul 2014
POJ 1703 Find them, Catch them
题目 源地址: http://poj.org/problem?id=1703 理解 这个并查集有点不一样,之前做过的全都是判断是否连通,这一... - 22 Jul 2014
POJ 1308 Is It A Tree?
题目 源地址: http://poj.org/problem?id=1308 理解 同样是并查集的应用,难点在于如何判断给定的点之间是否形成...