摘要:
1 #include 2 #include 3 #define M 100001 4 5 struct time 6 { 7 int a; 8 int b; 9 }flower[M];10 11 int visit[M];12 13 int cmp(const void *x, const void *y)14 {15 struct time *m = (struct time *)x;16 struct time *n = (struct time *)y;17 return m->a - n->a;18 }19 20 int main()21... 阅读全文
摘要:
1 #include 2 #define M 301 3 int r[M], c[M]; 4 5 int main() 6 { 7 int k, m, n, i, j, sum, flag, t; 8 scanf("%d", &k); 9 while(k--){10 11 sum = 0;12 scanf("%d %d", &m, &n);13 for(i = 1; i c[i])51 {52 for(j = 1; j c[i])60 ... 阅读全文