摘要:
样例输出 解题思路 一开始看到这题就觉得要用栈,毕竟是表达式求值问题,但是自己的中缀表达式求值也没练过,而且这次的课程作业又是练习递归,于是就尝试了递归解法。 但是入门太浅,还是搞不懂递归思路,很难从一个表达式中进行结构的分解,逻辑梳理能力太差。 下面是大佬的代码,真心膜拜,希望我的代码能力能越来越 阅读全文
posted @ 2019-05-24 20:55
郭怡柔
阅读(309)
评论(0)
推荐(0)
摘要:
题目链接: http://poj.org/problem?id=1191 解题思路: 关键是方程式的化简,思路清晰,整个题的难度不大。 AC代码(课程PPT) 阅读全文
posted @ 2019-05-24 19:57
郭怡柔
阅读(167)
评论(0)
推荐(0)
摘要:
Description Some of you may have played a game called 'Blocks'. There are n blocks in a row, each box has a color. Here is an example: Gold, Silver, S 阅读全文
posted @ 2019-05-24 17:16
郭怡柔
阅读(332)
评论(0)
推荐(0)
摘要:
Description The king pays his loyal knight in gold coins. On the first day of his service, the knight receives one gold coin. On each of the next two 阅读全文
posted @ 2019-05-24 11:09
郭怡柔
阅读(371)
评论(0)
推荐(0)

浙公网安备 33010602011771号