随笔分类 - UVA Online Judge
摘要:树的各路径求和(三种方法以及相应的讲解和代码)
阅读全文
摘要:!循环,回溯!(好像很有意思附带代码)
阅读全文
摘要:计算几何类型的题目。需要用到三个基本算法,一是求凸包,二是判断点在多边形内,三是求多边形面积(附带讲解和两种不同解决问题代码)
阅读全文
摘要:题目来源:https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=3&page=show_problem&problem=44Maximum SumBackgroundA problem that ...
阅读全文
摘要:题目来源:https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=3&page=show_problem&problem=43The Cat in the HatBackground(An homa...
阅读全文
摘要:题目来源:https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=3&page=show_problem&problem=42Fermat vs. PythagorasBackgroundCompu...
阅读全文
摘要:History GradingBackgroundMany problems in Computer Science involve maximizing some measure according to constraints.Consider a history exam in which s...
阅读全文
摘要:题目来源:https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=3&page=show_problem&problem=41解题思路:当看到题目时,仔细想想感觉用暴力方法挺复杂的.需要判断建筑是否...
阅读全文
摘要:题目来源:https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=3&page=show_problem&problem=40ArbitrageBackgroundThe use of comput...
阅读全文
摘要:题目来源:https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=3&page=show_problem&problem=39Stacking BoxesBackgroundSome concept...
阅读全文
摘要:题目来源:https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=3&page=show_problem&problem=38Ecological Bin PackingBackgroundBin ...
阅读全文
摘要:积木问题,指令操作(字符串操作以及数据结构的使用)
阅读全文
摘要:函数f(n)为分段函数:当n为奇数时f(n)=3n+1;当n为偶数时f(n)=n/2;
阅读全文