摘要: 简单的搜索,在n>10时,要打表code:#include#include#includeusing namespace std;const int maxn = 20, N = 14;int n, p[maxn], ans = 0;void dfs (int emp){ int i, j, p0[... 阅读全文
posted @ 2014-07-24 09:57 keambar 阅读(256) 评论(0) 推荐(0)
摘要: 时间限制:0.25s空间限制:6M题意: 给出n(n#include #include #include #include #include using namespace std;struct node { int key, val, ID;} p;struct answer { int fa... 阅读全文
posted @ 2014-07-24 08:40 keambar 阅读(423) 评论(0) 推荐(0)