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 |
直接取模是不对的首先取模算法都是模一个偶数,设为2n,那么构造数据2n+1 0 1 0 0 0,显然是可分的,但是取模算法会得到不可分的结果,虽然也能ac 建议改用 if(a[i]>6) a[i]=a[i]%6+6 Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator