摘要: #include#include#includeusing namespace std;int main(){ int T,i,n; int a[9]= {1,2,3,4,5,6,7,8,9}; cin>>T; while(T--) { cin>>n; ... 阅读全文
posted @ 2016-04-16 18:36 Code-dream 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 点击打开题目链接 题目大意:给你一个2X4的魔板,问你最少多少步骤能拼成 0 1 2 3 4 5 6 7 0 代表空的地方 如图: 这是最终 状态。 Sample Input 0 1 2 3 4 5 6 7 1 0 2 3 4 5 6 7 7 6 5 4 3 2 1 0 Output for the 阅读全文
posted @ 2016-04-16 13:03 Code-dream 阅读(255) 评论(0) 推荐(0) 编辑