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 |
不好意思,没贴完In Reply To:My code 交着玩的 ^_^ int main(){int t,n,c,ji,ou,i;scanf("%d",&t);while(t--){scanf("%d",&n);for(i=0,ji=0,ou=0;i<n;i++){scanf("%d",&c);if(c==1){if(i%2==0) ou++;else ji++;}}i=ou-ji;if(n%2){printf("YES\n" Posted by:oeym at 2006-03-07 23:12:50 Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator