摘要: #include #include #define maxn 1000000 struct node { int q[10]; int fa; int step; }s[maxn]; int data[]={1,2,3,8,0,4,7,6,5}; int h[]={1,1,2,6,24,120,720,5040,40320}; const int dx[]={-1,1,0... 阅读全文
posted @ 2016-10-23 20:39 球痞丶小七 阅读(224) 评论(0) 推荐(0) 编辑
摘要: #include #include const int MAXN=100010; int n,k,cur,ans,cnt[15],j,sum,last; char str[MAXN],curs[MAXN],anss[MAXN]; int abs(int x) { return x>=0 ? x:-x; } int main() { //freopen("number.in",... 阅读全文
posted @ 2016-10-23 20:38 球痞丶小七 阅读(164) 评论(0) 推荐(0) 编辑