Minimum Distance in a Star Graph BFS/康托展开 2017 ACM-ICPC 亚洲区(南宁赛区)网络赛
题目链接模拟+BFS+康拓展开,此题的数据比较水,如果n为9就GG了#includeusingnamespacestd;typedeflonglongll;vectormm[500005];intvis[500005];intn;llsum=0;inta[11];intb[11];intfac[]={1,1,2,6,24,120,720,5040,40320};//i的阶乘为fac[i]//康托展