N group number, number of each group contains two Numbers ai, bi? In n group number, let you find the longest period of continuous (required), make this paragraph of the number of each group has a same number, allowing you to output the length of the sequence and the same number, if there is more than the same number, output the smallest number,
CodePudding user response:
Save the children!!!!!!!!!