摘要:
做这道题的时候傻X错误百出。。。在计算总和上错了好久。还把=写成了==。。。。蛋疼无比题意就是合并两颗4叉树。 然后按照要求计算值。。主要用了个递归 。 没有像网上其他一些解法用结构指针什么的。。单用了数组题目QuadtreesA quadtree is a representation format used to encode images. The fundamental idea behind the quadtree is that any image can be split into four quadrants. Each quadrant may again be split 阅读全文
摘要:
一道类似括号匹配的题目。 一负一正组成一个括号。 然后 某一个括号内部第一层括号之和严格小于这层的值写的有些蛋疼题目:Problem B - Generalized MatrioshkasVladimir worked for years making matrioshkas, those nesting dolls that certainly represent truly Russian craft. A matrioshka is a doll that may be opened in two halves, so that one finds another doll inside 阅读全文