| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
这样的程序超时??? 有没有搞错? 偶算是晕了! 有代码!#include<iostream>
using namespace std;
int main()
{
int temp,m,t,n;
while(cin>>n>>m)
{
if(n<m)
{
temp=m;
m=n;
n=temp;
}
t=n-m;
if((m!=3&&n!=5&&t==2)||(n!=2&&m!=1&&t==1)||(m!=4&&n!=7&&t==3)||(t>=4&&m>=1)||t==0)
cout<<1<<endl;
else
cout<<0<<endl;
}while(1);
return 0;
}
Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator