文件名称:Cpp1
介绍说明--下载内容均来自于网络,请自行研究使用
每个地区有一个编号(从 1 到 N) ,如果一个地区有军队的话,这些军队将组成一个军
团。指挥中心将发布的命令如下:
U a b:将 b 地区军团的调到 a 地区,从而组成一个新的军团。为了便于管理,每次新加
入的军队将按顺序加入到 a 军团后面。数据保证 a 与 b 不相同。
I a x:将一支人数为 x 的军队调到 a 地区。为了便于管理,每次新加入的军队将加入到
a 军团前面。
D a x:将 a 地区中军队人数为 x 的调走。若不存在,则不执行。
Q a:询问 a 地区的具体军事信息(即按顺序输出该军团中每个军队的人数)-Each region has a number (from 1 to N), if a regional army, these troops will form a legion. The command center will command as follows: U ab: b region transferred to a region of the Legion to form a new legion. For ease of administration, and each new army sequentially added to the back of a Legion. The data to ensure that a and b are not the same. I ax: the armed forces of a number of x transferred to a region. For ease of administration, each new army will be added to the front of a legion. D ax: the number of troops in a region to the tune of x go. If there is not executed. Q a: ask a specific military information (that is, the number of each army sequentially output the Legion)
团。指挥中心将发布的命令如下:
U a b:将 b 地区军团的调到 a 地区,从而组成一个新的军团。为了便于管理,每次新加
入的军队将按顺序加入到 a 军团后面。数据保证 a 与 b 不相同。
I a x:将一支人数为 x 的军队调到 a 地区。为了便于管理,每次新加入的军队将加入到
a 军团前面。
D a x:将 a 地区中军队人数为 x 的调走。若不存在,则不执行。
Q a:询问 a 地区的具体军事信息(即按顺序输出该军团中每个军队的人数)-Each region has a number (from 1 to N), if a regional army, these troops will form a legion. The command center will command as follows: U ab: b region transferred to a region of the Legion to form a new legion. For ease of administration, and each new army sequentially added to the back of a Legion. The data to ensure that a and b are not the same. I ax: the armed forces of a number of x transferred to a region. For ease of administration, each new army will be added to the front of a legion. D ax: the number of troops in a region to the tune of x go. If there is not executed. Q a: ask a specific military information (that is, the number of each army sequentially output the Legion)
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Cpp1.cpp