| ||||||||||
| 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 | |||||||||
1138 历史上最无耻的代码#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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator