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

如果代码能写短的话(当然这题不是),还要压缩代码,一个字节一个字节地抠.比如2975的代码见内

Posted by majia001 at 2006-09-05 14:22:56 on Problem 2988
In Reply To:够了,停吧,光会改常数有什么用! Posted by:frkstyc at 2006-09-05 11:30:35
s,*k=&s;main(n){for(;scanf("%d",&n),n;printf("%d\n",n+1)){for(s=0;n--;s^=*k)scanf("%d",++k);for(;k-&s;)n+=*k>(*k--^s);}}
//use gcc

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