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 fengxingjie1989 at 2009-10-21 10:53:15 on Problem 1067
#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