Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

不好意思,没贴完

Posted by oeym at 2006-03-07 23:18:14 on Problem 1063
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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator