文件名称:6_5

  • 所属分类:
  • 其他小程序
  • 资源属性:
  • [C/C++] [源码]
  • 上传时间:
  • 2013-03-25
  • 文件大小:
  • 1kb
  • 下载次数:
  • 0次
  • 提 供 者:
  • y**
  • 相关连接:
  • 下载说明:
  • 别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容均来自于网络,请自行研究使用

该题是2000年全国青少年信息学奥林匹克的一道试题。叙述如下:

一条小溪尺寸不大,青蛙可以从左岸跳到右岸,在左岸有一石柱L,面积只容得下一只青蛙落脚,同样右岸也有一石柱R,面积也只容得下一只青蛙落脚。有一队青蛙从尺寸上一个比一个小。我们将青蛙从小到大,用1,2,…,n编号。规定初始时这队青蛙只能趴在左岸的石头L上,按编号一个落一个,小的落在大的上面。不允许大的在小的上面。在小溪中有S个石柱,有y片荷叶,规定溪中的柱子上允许一只青蛙落脚,如有多只同样要求按编号一个落一个,大的在下,小的在上,而且必须编号相邻。对于荷叶只允许一只青蛙落脚,不允许多只在其上。对于右岸的石柱R,与左岸的石柱L一样允许多个青蛙落脚,但须一个落一个,小的在上,大的在下,且编号相邻。当青蛙从左岸的L上跳走后就不允许再跳回来;同样,从左岸L上跳至右岸R,或从溪中荷叶或溪中石柱跳至右岸R上的青蛙也不允许再离开。问在已知溪中有S根石柱和y片荷叶的情况下,最多能跳过多少只青蛙?

-This topic is the 2000 National Youth Information question the olympic. The narrative follows:



A stream size, the frog can jump from left to right, there is a pillar of L on the left bank, area of only one frog settled, the same right bank also has a stone R, area is only one frog. A group of frogs from a size smaller than the one of. We will frog from small to large, with 1, 2,... , n number. Provisions of this team initially frog only lie on the left bank of stone L, according to the number one upon another, small on top. Do not allow big in small. S columns in the creek, y Creek in the lotus leaf, provisions of columns allows a frog settled, if there are more than just the same as required by the number one upon another, bigger in the next, small in number, and must be adjacent to. The lotus leaf only allows a frog to stay, not allowed only on the. For the pillars of R, and on the left bank of stone like L allows multiple frog settled, but must be one upon another, small in the b
(系统自动生成,下载前可以参看下载内容)

下载文件列表





6_5.cpp

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度更多...
  • 请直接用浏览器下载本站内容,不要使用迅雷之类的下载软件,用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*主  题:
*内  容:
*验 证 码:

源码中国 www.ymcn.org