题目:http://acm.hdu.edu.cn/showproblem.php?pid=1050
求区间上点的最大重叠次数。
#include <stdio.h>
#include <string.h>
int main()
{
int t, s, e, i, n, max, tmp;
int mark[205];
scanf("%d", &t);
while (t--) {
scanf("%d", &n);
memset(mark, 0, sizeof(mark));
while (n--) {
scanf("%d%d", &s, &e);
if (s > e) {
tmp = s;
s = e;
e = tmp;
}
......
阅读全文