极限编程大赛试题AQ.docVIP

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
  4. 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
  5. 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们
  6. 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
  7. 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
极限编程大赛试题AQ

Wooden railway A little boy lets call him Tom owns a box with a set of wooden rails the childrens toy . There are six rail types as shown in the table below. Each rail has one connector where it starts and at least one connector to further rails end points . The end point locations of a rail are defined by 2D positions xe,ye and the connectors angle tangent angle, degrees with respect to the starting point of the rail. For curved circular sections the end point is defined by the rails radius and the end points angle. Sketch Type Description End points xe,ye,angle 0 Straight rail, length 20 cm 0.2, 0, 0 1 Straight rail, length 30 cm 0.3, 0, 0 2 Curved rail, angle 15° xe15,ye15,15 radius 0.58 m 3 Curved rail, angle 30° xe30,ye30,30 radius 0.58 m 4 Forward switch, angle 15° 0.2, 0, 0 xe15,ye15,15 5 Reverse switch, angle 15° 0.2, 0, 0 0.2-xe15,ye15,165 All the rails can be turned on their back, a curved rail can thus be used to turn left or right. Connecting rails to the end points of other rails the first rail starts at 0,0,0 , the origin in varying order yields tracks of different shape. The end points of rails with no other rail connected to it are considered as track end points. Depending on the rails in use and their connections, a track has a number of track end points Nt. This number can be increased only by switches. Because a rail can be connected to several end points at the same time thus closing a gap between other rails , Nt can be decrease by any type of rail. Task Tom is wondering how many tracks he can create of his set of rails. Write a program that reads the number of rails of each type Nx from stdin. The program outputs the minimum number of track end points and the number of valid different tracks with this property Ns that can be constructed using all the rails in Toms box. ? Tracks are considered to be different, if they do not have the same geometrical shape. Two tracks have the same shape, if their

文档评论(0)

sb9185sb + 关注
实名认证
文档贡献者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档