格雷码
nike0good
这个作者很懒,什么都没留下…
展开
-
HDU 5375(Gray code-格雷码dp)
Gray codeTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 860 Accepted Submission(s): 490Problem DescriptionThe reflected binary c原创 2015-08-26 20:38:05 · 936 阅读 · 0 评论 -
POJ 1832(9连环)
格雷码做0要特判答案 就是读入的两个数充格雷码转为2进制的差的绝对值的十进制Program P1832;Type arr=record a:array[1..500] of longint; len:longint; end;var n,m,i:longint; a,b,c,d:arr; node2:原创 2012-08-17 18:33:36 · 1832 阅读 · 0 评论