文件名称:2
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:563byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
如图 A 中的项链,从第 9 和第 10 个或者第 24 和 第 25 个珠子中间截断,则我们可以收集到 8 个珠子。
图 B 中的项链有白色的珠子,当遇到白色的珠子时,它既可以作为蓝色的珠子看待,也可以作为红色的珠子看待,由收集珠子时的需求决定。包含有白色珠子的项链则会由 r、b 和 w 字符组成的字符串来表示。
请编写一个程序计算从某条项链中能够收集到多少个珠子。-Figure A, the necklace, from 9 and 10 or 24 and the middle cut 25 beads, then we can collect up to 8 beads. Figure B necklace with white beads, white beads when faced with when both can be viewed as blue beads, the beads can also be viewed as red, when the demand by the decision to collect beads. Contains white beads from the necklace will be r, b and w to represent a string of characters. Please write a program to calculate from a necklace of beads to collect the number.
图 B 中的项链有白色的珠子,当遇到白色的珠子时,它既可以作为蓝色的珠子看待,也可以作为红色的珠子看待,由收集珠子时的需求决定。包含有白色珠子的项链则会由 r、b 和 w 字符组成的字符串来表示。
请编写一个程序计算从某条项链中能够收集到多少个珠子。-Figure A, the necklace, from 9 and 10 or 24 and the middle cut 25 beads, then we can collect up to 8 beads. Figure B necklace with white beads, white beads when faced with when both can be viewed as blue beads, the beads can also be viewed as red, when the demand by the decision to collect beads. Contains white beads from the necklace will be r, b and w to represent a string of characters. Please write a program to calculate from a necklace of beads to collect the number.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
2.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.