资 源 简 介
军团问题, 某国家在一条战线上(一条直线)上部署了n 支军队。如果两支或两支以上军队相邻,它们将形成一个军团。如果一支军队不和任何一支军队相邻,那么它也是一个独立的团。给定一组军队在战线上左右两端的位置及编号,求出所有的军团
-Corps issues, a country in a front (a straight line) on n-support forces deployed. If two or more than two neighboring armies, they will form a regiment. If an army is not adjacent to any one army, then it is also an independent regiment. Given a group of troops on the front left and right ends of the location and number, find all of the Army