/ OPS / 题库 /

MatRush's Box

MatRush's Box

#描述#
<p>MatRush have a box, and now he want to color the box by some given colors, he consider two box is same if and only if by some rotation the former one have the same color as the latter one.</p>
<p>Now he give you a set of six colors(some colors may be the same with the other). And he ask you: how many different boxes he can get?</p>

#格式#
##输入格式##
It has multiple test cases in this problem, and MatRush will give you six colors, we use the letters of {'M', 'A', 'T', 'R', 'U', 'S', 'H'} instead of the specific colors.

##输出格式##
You must print the number of different boxes MatRush can get by use rotations.

#样例1#
##样例输入1##

MATRUS
SSRRRR

##样例输出1##

30
2

#限制#
1000ms
32768KB

#提示#

#来源#
LCS

信息

ID
1862
难度
5
分类
category1 点击显示
标签
递交数
0
已通过
0
通过率
?
上传者