| ||||||||||
| 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 | |||||||||
这陀题硬是一下子高不清楚做什么,贡献了2次WA#include<stdio.h>
main()
{
int n,i,j,a[100][100],sum[100]={0},count=0;
scanf("%d",&n);
for(i=0;i<n;i++)
{
for(j=0;j<n;j++)
{
scanf("%d",&a[i][j]);
}
}
for(i=0;i<n;i++)
{
for(j=0;j<n;j++)
{
if(a[i][j]>a[j][i])
sum[i]++;
}
if(i&&(sum[i]-sum[0]>0))
{
sum[0]=sum[i];
count=i;
}
}
printf("%d",count+1);
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator