摘要: 继8皇后问题后又一大突破8数码问题EightTime Limit : 2000/1000ms (Java/Other) Memory Limit : 131072/65536K (Java/Other)Total Submission(s) : 8 Accepted Submission(s) : 4Special JudgeProblem DescriptionThe 15-puzzle... 阅读全文
posted @ 2013-04-13 19:16 码代码的猿猿 阅读(171) 评论(0) 推荐(0) 编辑
摘要: EightTime Limit : 2000/1000ms (Java/Other)Memory Limit : 131072/65536K (Java/Other)Total Submission(s) : Accepted Submission(s) :Special JudgeProblem DescriptionThe 15-puzzle has been around for over 100 years; even if you don't know it by that name, you've seen it. It is constructed with 15 阅读全文
posted @ 2013-04-13 11:24 码代码的猿猿 阅读(316) 评论(0) 推荐(0) 编辑
摘要: 康托展开的公式把一个整数X展开成如下形式:X=a[n]*(n-1)!+a[n-1]*(n-2)!+...+a*(i-1)!+...+a[2]*1!+a[1]*0!其中,a为整数,并且0#include using namespace std;int main(){ string s; cin>>s; int len=s.length(); int sum=0; for... 阅读全文
posted @ 2013-04-13 00:36 码代码的猿猿 阅读(235) 评论(0) 推荐(0) 编辑