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
欢迎参加IJCAI 2020麻将智能体竞赛,大奖等你拿!Welcome to IJCAI 2020 Mahjong AI competition with amazing prizes!

哪里错了?有反例吗?

Posted by fengxingjie1989 at 2009-10-21 10:52:29 on Problem 1067
In Reply To:这题的公式怎么推出来的? Posted by:C0400348198 at 2004-03-01 17:38:44
#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