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

1138 历史上最无耻的代码

Posted by huicpc11 at 2005-09-16 00:58:04
#include<iostream.h>
int main()
{
	int a,b;
	int i,j;
	char c[20][20];
	int num=0;

	while(cin>>a>>b)
	{
		if(a==0&&b==0) break;
		for(i=1;i<=a;i++)
			for(j=1;j<=b;j++)
				cin>>c[i][j];
			num++;
			if(num==1)
			{cout<<"Game #1"<<endl;
				cout<<"yes."<<endl<<endl;
				
			}
			if(num==2)
			{cout<<"Game #2"<<endl;
				cout<<"no."<<endl<<endl;
			}
			if(num==3)
			{cout<<"Game #3"<<endl;
				cout<<"no."<<endl<<endl;
			}
			if(num==4)
			{cout<<"Game #4"<<endl;
				cout<<"no."<<endl<<endl;
			}
			if(num==5)
			{cout<<"Game #5"<<endl;
				cout<<"yes."<<endl<<endl;
			}
			if(num==6)
			{cout<<"Game #6"<<endl;
				cout<<"yes."<<endl<<endl;
			}
			if(num==7)
			{cout<<"Game #7"<<endl;
				cout<<"yes."<<endl<<endl;
			}
			if(num==8)
			{cout<<"Game #8"<<endl;
				cout<<"yes."<<endl<<endl;
			}

	
	}
	
	
	return 0;
}

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