Gold CoinsTime Limit: 1000MSMemory Limit:
30000KTotal Submissions: 20802Accepted: 13018DescriptionThe king pays his loyal
knight in gold coins. On the...
分类:
其他好文 时间:
2014-05-31 21:00:16
阅读次数:
360
控制反转顾名思义就是把控制权反过来了,说白了就是一个java bean
里面的属性不是在程序里面生成注入,而是通过spring的xml配置文件进行注入 这个其实就是所谓的依赖注入。请看下面代码public class
KnightOfTheRoundTable implements Knight.....
分类:
编程语言 时间:
2014-05-26 21:01:33
阅读次数:
303
题目意思:象棋中的马在一张棋盘上能否不重复的走完所有格子,如果能走完输出走的路径(以字典序),如果没有一种走法能达到这样的目标,则输出impossible。
思路就是DFS 搜下去,当走过的格子数达到格子总数时就打印路径。所以要用一个数组记录每个定点的前驱节点。...
分类:
其他好文 时间:
2014-05-21 17:00:48
阅读次数:
184
assumecs:code,ds:datadatasegment msgdb"helloworld"dataendscodesegment start: movax,data movds,ax movbx,0b800h moves,bx movcx,11 movsi,0 movbx,0 movah,01000010bs:moval,ds:[si]moves:[bx],almoves:[bx+1],ahincsiaddbx,2loopsmovax,4c00hint21hcodeendsendstart运..
分类:
编程语言 时间:
2014-05-20 20:36:44
阅读次数:
375
Chef develops his own computer program for playing chess. He is at the very beginning. At first he needs to write the module that will receive moves written by the players and analyze it. The module w...
分类:
其他好文 时间:
2014-05-06 23:11:26
阅读次数:
497