摘要: 题目链接来个水题。。难得的1Y。 1 #include 2 #include 3 #include 4 using namespace std; 5 #define LL __int64 6 int flag[31],que[31]; 7 LL fact[31]; 8 int n; 9 LL m;10 void dfs(LL x,int step)11 {12 LL temp = 0;13 int i;14 for(i = 1;i = x)19 {20 flag[i] = 1;21 ... 阅读全文
posted @ 2013-08-31 21:40 Naix_x 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 题目链接很早 很早之前就看过的一题,今天终于A了。状态转移,还算好想,输出路径有些麻烦,搞了一个标记数组的,感觉不大对,一直wa,看到别人有写直接输出的。。二了,直接输出就过了。。 1 #include 2 #include 3 #include 4 using namespace std; 5 int dp[201][201]; 6 int flag[201]; 7 int pos[201]; 8 char str[201]; 9 int dfs(int L,int R) 10 { 11 int i,minz; 12 if(dp[L][R]) 13 ... 阅读全文
posted @ 2013-08-31 19:50 Naix_x 阅读(155) 评论(0) 推荐(0) 编辑