标题:[求助]一个关于puzzle word的问题
只看楼主
towgandz
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2006-9-2
 问题点数:0 回复次数:1 
[求助]一个关于puzzle word的问题
给出一个word list
hello
dog
brown
join
row
quick
averyverylongword
noon
z
blue
blunt
help
even
blink


和一个grid
dogxbxxxnoon
bhellotherec
akciuqbrownm
xxxgexlahjij
xbzoxvuxxxox
xlxdzxexxxjx
xuxxblxnkgod

写一个程序从grid中找出字母来组成list中的词
最后写出来像这种形式的结果
The word "hello" was found 1 time in the grid.
The word "dog" was found 3 times in the grid.
The word "brown" was found 1 time in the grid.
The word "join" was found 1 time in the grid.
The word "row" was found 1 time in the grid.
The word "quick" was found 1 time in the grid.
The word "averyverylongword" was NOT found in the grid.
The word "noon" was found 2 times in the grid.
The word "z" was found 2 times in the grid.
The word "blue" was found 2 times in the grid.
The word "blunt" was NOT found in the grid.
The word "help" was NOT found in the grid.
The word "even" was found 1 time in the grid.
The word "blink" was NOT found in the grid.
搜索更多相关主题的帖子: puzzle word 
2006-09-02 21:53
soft_wind
Rank: 3Rank: 3
等 级:新手上路
威 望:8
帖 子:1430
专家分:0
注 册:2006-4-5
得分:0 

对不礼貌的女生收钱......
2006-09-02 22:16



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-87631-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 1.017278 second(s), 7 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved