摘要:
题目来源:点击打开链接 题目描述 给出一个整数n(n1,则可能的情况为224,214,124,114。 解决方法就是利用广搜,注意每次替换为新的数时的处理。 # include# include# includeusing namespace std;queu... 阅读全文
摘要:
Background Mr Somurolov, fabulous chess-gamer indeed, asserts that no one else but him can move knights from one position to ano... 阅读全文
摘要:
参考来源:http://www.cnblogs.com/huashanqingzhu/category/852024.html 描述 给出两个单词(开始单词和结束单词)以及一个词典。找出从开始单词转换到结束单词,所需要的最短转换序列。转换的规则如下: 1、每次... 阅读全文