{"trustable":false,"prependHtml":"\u003cstyle type\u003d\"text/css\"\u003e\n section pre {\n display: block;\n padding: 9.5px;\n margin: 0 0 10px;\n font-size: 13px;\n line-height: 1.42857143;\n word-break: break-all;\n word-wrap: break-word;\n color: #333;\n background: rgba(255, 255, 255, 0.5);\n border: 1px solid #ccc;\n border-radius: 6px;\n }\n\u003c/style\u003e\n\u003cscript\u003e\n window.katexOptions \u003d {\n delimiters: [\n {left: \u0027\\\\(\u0027, right: \u0027\\\\)\u0027, display: false},\n {left: \u0027\\\\[\u0027, right: \u0027\\\\]\u0027, display: true}\n ]\n };\n\u003c/script\u003e\n","sections":[{"title":"Problem Statement","value":{"format":"HTML","content":"如果有两个字符串,你对他们的字母顺序进行重组,他们可以变成同一个字符串,那么他们俩就可以组成一对字谜。例如greenbin和beginner就可以组成字谜了,因为他们都能变成beeinnrg。那么先输入一个n,输入n个字符串,s1,s2,s3...sn。输入的字符串都不相同,每个字符串长度都是10,问你能组成字谜的方式有多少种。i!\u003dj,si和sj能组成字谜就算一种。i小于j!\n "}},{"title":"Constraints","value":{"format":"HTML","content":"2\u003c\u003dn\u003c\u003d1e5\nsi的长度为10。\n每个字符串都是小写字母组成。\n没有相同的字符串。"}},{"title":"Input","value":{"format":"HTML","content":"\u003cpre\u003e\u003cvar\u003eN\u003c/var\u003e\n\u003cvar\u003es1\u003c/var\u003e\n\u003cvar\u003es2\u003c/var\u003e\n\u003cvar\u003e:\u003c/var\u003e\n\u003cvar\u003esN\u003c/var\u003e\n\u003c/pre\u003e"}},{"title":"Output","value":{"format":"HTML","content":"输出一个整数,组成字谜的个数。"}},{"title":"Sample Input 1","value":{"format":"HTML","content":"\u003ch3\u003e\u003c/h3\u003e\n\u003cpre\u003e3\nacornistnt\npeanutbomb\nconstraint\n\u003c/pre\u003e"}},{"title":"Sample Output 1","value":{"format":"HTML","content":"\u003ch3\u003e\u003c/h3\u003e\n\u003cpre\u003e1\n\u003c/pre\u003e "}},{"title":"Sample Input 2","value":{"format":"HTML","content":"\u003ch3\u003e\u003c/h3\u003e\n\u003cpre\u003e2\noneplustwo\nninemodsix\n\u003c/pre\u003e"}},{"title":"Sample Output 2","value":{"format":"HTML","content":"\u003ch3\u003e\u003c/h3\u003e\n\u003cpre\u003e0\n\u003c/pre\u003e "}},{"title":"Sample Input 3","value":{"format":"HTML","content":"\u003ch3\u003e\u003c/h3\u003e\n\u003cpre\u003e5\nabaaaaaaaa\noneplustwo\naaaaaaaaba\ntwoplusone\naaaabaaaaa\n\u003c/pre\u003e"}},{"title":"Sample Output 3","value":{"format":"HTML","content":"\u003ch3\u003e\u003c/h3\u003e\n\u003cpre\u003e4\n\u003c/pre\u003e "}}]}