解法 代码如下: 1#include <iostream>2#include <cstring>3#include <algorithm>4usingnamespacestd;5constintM =210;6structSegment {7intcolor;8intlen;9};10Segment segments[M];11intscore[M][M][M];12intClickBox(inti,intj,intlen) {13if(score[i][j][len] != -1)14returnscore[i][j][len...