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 |
呵呵蒙过去了开始老是tle 最后加上这个就ac了 const int N=5; if(a[1]>=N) a[1]=(a[1]-N)%2==0?N:N+1; if(a[2]>=N) a[2]=(a[2]-N)%2==0?N:N+1; if(a[3]>=N) a[3]=(a[3]-N)%2==0?N:N+1; if(a[4]>=N) a[4]=(a[4]-N)%2==0?N:N+1; if(a[5]>=N) a[5]=(a[5]-N)%2==0?N:N+1; if(a[6]>=N) a[6]=(a[6]-N)%2==0?N:N+1; Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator