魔方吧·中文魔方俱乐部

 找回密码
 注册
搜索
热搜: 魔方
查看: 68416|回复: 23
打印 上一主题 下一主题

一道关于三阶魔方置换周期的题目 [复制链接]

Rank: 2

积分
515
帖子
408
精华
2
UID
69974
性别
跳转到指定楼层
1#
发表于 2009-6-7 12:30:41 |只看该作者 |倒序浏览
http://acm.hust.edu.cn/thx/problem.php?id=1229

来挑战下吧!~





Periodic Operation

Time Limit: 10 Sec  Memory Limit: 128 MB
Submissions: 23  Solved: 5

Description
Rubik's Cube is one of the most popular toys in the world. The job of recovering 6 faces is interesting. Now it can be solved by computer very efficiently, but this time I won't give you such a hard assignment.

A Rubik's Cube player may find that any series of certain operations on a Cube is periodic, which means that given a series of operations, if performed on a recovered cube successively for a certain times, the cube will be recovered again. The minimum number of times required is called the period of that series of operations.

Now you are asked to calculate the period of some given series of operations.

  
Input
Input terminates with EOF.
Each case has a line describing the series of operations.
Any series is composed of unit operations of the following 18 ones:
U U' U2 R R' R2 F F' F2
D D' D2 L L' L2 B B' B2
Any two operations is separated by a space.
Any series has no more than 100 operations and no less than 1 operation.
The function of the above operation is explained in the following figure:

  
Output
For each case output one number indicating the period in one line.


Sample Input
F
R2 R2
U R' U' R

Sample Output
4
1
6

HINT
1. Before scrambling, each face of the cube has a unique color.
2. The cube is recovered when any face is composed of only one color.

[ 本帖最后由 xh176233756 于 2009-6-7 19:44 编辑 ]

Rank: 4

积分
1074
帖子
948
精华
0
UID
47429
性别

两年元老

2#
发表于 2009-6-7 12:33:58 |只看该作者
还是别给连接呀楼主,直接上吧里多好的
cqmofang.com
重庆群:87371419

使用道具 举报

铜魔

♂鉦版宅娚ミ

Rank: 8Rank: 8

积分
10831
帖子
9358
精华
1
UID
90305
性别

爱心大使 六年元老

3#
发表于 2009-6-7 12:36:58 |只看该作者
定下在看~!!

!!!
哥拧的不是魔方,是寂寞
“人生就好比魔方,要想好下一步该怎么走”
魔方吧-福建超级群:63887957
玩魔方就是玩个低调

使用道具 举报

铜魔

♂鉦版宅娚ミ

Rank: 8Rank: 8

积分
10831
帖子
9358
精华
1
UID
90305
性别

爱心大使 六年元老

4#
发表于 2009-6-7 12:37:45 |只看该作者
麻烦翻译下

偶英语不太好
哥拧的不是魔方,是寂寞
“人生就好比魔方,要想好下一步该怎么走”
魔方吧-福建超级群:63887957
玩魔方就是玩个低调

使用道具 举报

铜魔

♂鉦版宅娚ミ

Rank: 8Rank: 8

积分
10831
帖子
9358
精华
1
UID
90305
性别

爱心大使 六年元老

5#
发表于 2009-6-7 12:38:15 |只看该作者
对于这类题目我很感兴趣

就是英语
哥拧的不是魔方,是寂寞
“人生就好比魔方,要想好下一步该怎么走”
魔方吧-福建超级群:63887957
玩魔方就是玩个低调

使用道具 举报

粉魔

成都千奇百怪的助手

Rank: 5Rank: 5

积分
3240
帖子
2645
精华
5
UID
25456
性别

六年元老

6#
发表于 2009-6-7 12:45:35 |只看该作者
网页打不开
千奇百怪润智QQ群39440516。四川魔方群15545617。
点击进入我的视频:http://u.youku.com/xdgtzsyyj
http://shop34170148.taobao.com/

使用道具 举报

Rank: 4

积分
1744
帖子
1304
精华
0
UID
9103
性别
7#
发表于 2009-6-7 12:50:41 |只看该作者
全英文,看不懂,等翻译啊

使用道具 举报

Rank: 4

积分
1843
帖子
1468
精华
1
UID
79281
性别

四年元老

8#
发表于 2009-6-7 13:10:08 |只看该作者
麻烦问题直接给出了2

使用道具 举报

红魔

All Blue

Rank: 4

积分
1196
帖子
999
精华
2
UID
38845
性别
9#
发表于 2009-6-7 13:43:57 |只看该作者
我也打不開,誰能貼上來
公式D F2 U L2 U B2 U R2 U R' F2 R L U L' R' U R L' U L U L U2 L' U' L U2 L'
数列11121131221231321332223233311

使用道具 举报

银魔

小欣然的爸爸

Rank: 7Rank: 7Rank: 7

积分
37843
帖子
34374
精华
15
UID
16477
性别
保密

论坛建设奖 爱心大使 八年元老

10#
发表于 2009-6-7 15:08:20 |只看该作者
英文版的
天津1群11471969,2群5834223
3群62462688,4群62462702
5群70735234,6群33712046
7群12240584,8群29198783
9群62974165,欢迎加入!

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

Archiver|手机版|魔方吧·中文魔方俱乐部

GMT+8, 2024-5-22 06:51

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

回顶部