Jack Straws.cpp

时间:2012-06-08 14:27:01
【文件属性】:

文件名称:Jack Straws.cpp

文件大小:2KB

文件格式:CPP

更新时间:2012-06-08 14:27:01

cpp

In the game of Jack Straws, a number of plastic or wooden ``straws" are dumped on the table and players try to remove them one-by-one without disturbing the other straws. Here, we are only concerned with if various pairs of straws are connected by a path of touching straws. You will be given a list of the endpoints for some straws (as if they were dumped on a large piece of graph paper) and then will be asked if various pairs of straws are connected. Note that touching is connecting, but also two straws can be connected indirectly via other connected straws.


网友评论