呵呵 邮路 #include using namespace std; #define inf 210000000; int mm[100][100],w,ge[100],sum,ss,s,su[100]; void sech(int i); int main() { int sum=0,i,j,n,m,num[100],k,a,b,c; while(scanf("%d",&n)!=EOF) { memset(num,0,sizeof(num)); if(n==0)break; scanf("%d",&m); for(i=0;i