Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
求解该题要注意的地方输入: scanf("%d",k); getchar(); gets(s); for(i=0;i<=n;i++) { if(s[i]==10 || s[i]==0) s[i]=' '; } 处理置换群: 分解成循环,对每个循环,做(k mod (循环的阶数))次置换就可得到加密后的信息,不能求所有循环阶数的最小公因子total,然后做total次置换,这样会超时 Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator