| ||||||||||
| 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<stdio.h>
int main()
{
int n,d,m,i,j;
int a[101][501];
while(scanf("%d%d",&n,&d)!=EOF)
{
if(n==0&&d==0) break;
for(i=0;i<d;i++)
for(j=0;j<n;j++)
scanf("%d",&a[i][j]);
for(j=0;j<n;j++)
{
m=0;
for(i=0;i<d;i++)
if(a[i][j]==0)
{
m=1;
break;
}
if(!m)
{
printf("yes\n");
break;
}
}
if(m) printf("no\n");
}
}
Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator