自己写了快一个小时,数组越界了,只得了20分
#include<stdio.h>
#include<ctype.h>
#include<string.h>
#include<math.h>
#include<stdlib.h>
int main()
{
int n, m, i, j, k, l, cnt = 0;
scanf("%d %d %d", &n, &m, &k); //m是火把数,k是萤石数
int sign[n][n], mnum[m][2], knum[k][2];
for ( i = 0; i < n; i++)
for ( j = 0; j < n; j++)
sign[i][j] = 0;
for ( i = 0; i < m; i++)
scanf("%d %d", &mnum[i][0], &mnum[i][1]);
for ( i = 0; i < k; i