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

Re:哪里错了?有反例吗?

Posted by wisdonchen at 2012-10-28 21:25:20 on Problem 1067
In Reply To:哪里错了?有反例吗? Posted by:fengxingjie1989 at 2009-10-21 10:52:29
> #include<stdio.h>
> #include<math.h>
> int main()
> {
> 	int s1,s2;
> 	while(scanf("%d%d",&s1,&s2)==2){
> 	s1=abs(s1-s2);
> 	printf("%d\n",(s1+1)%2);}
> }
> 
> //个人感觉这样没错啊,谁能给帮忙找个反例?

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