版本比较
「ICPC World Finals 2017」风景 Scenery
正文
增加 2 行删除 2 行
85 行未改动86878889909192939495969786 行未改动85 行未改动tmp[++tot] = a[i].l, tmp[++tot] = a[i].r;}sort(tmp + 1, tmp + tot + 1);tot = unique(tmp + 1, tmp + tot + 1) - (tmp + 1);// printf("tot = %d\n", tot);// for (int i = 1; i <= tot; i++) printf("%d ", tmp[i]); puts("");for (int i = 1; i <= tot; i++) {for (int j = i; j <= tot; j++) {val[i][j] = (tmp[j] - tmp[i] + t - 1) / t;}86 行未改动85 行未改动86878889909192939495969786 行未改动85 行未改动tmp[++tot] = a[i].l, tmp[++tot] = a[i].r;}sort(tmp + 1, tmp + tot + 1);tot = unique(tmp + 1, tmp + tot + 1) - (tmp + 1);// printf("tot = %d\n", tot);// for (int i = 1; i <= tot; i++) printf("%d ", tmp[i]); puts("");for (int i = 1; i <= tot; i++) {for (int j = i; j <= tot; j++) {val[i][j] = (tmp[j] - tmp[i] + t - 1) / t;}86 行未改动