文件名称:Cpp1
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:695byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
每个地区有一个编号(从 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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.