鱼C论坛

 找回密码
 立即注册
查看: 1995|回复: 0

题目98:考察能组成平方数的词和它们的变位词

[复制链接]
发表于 2016-8-12 01:16:17 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能^_^

您需要 登录 才可以下载或查看,没有账号?立即注册

x
Anagramic squares

By replacing each of the letters in the word CARE with 1, 2, 9, and 6 respectively, we form a square number: QQ20160812-1@2x.png . What is remarkable is that, by using the same digital substitutions, the anagram, RACE, also forms a square number: QQ20160812-2@2x.png . We shall call CARE (and RACE) a square anagram word pair and specify further that leading zeroes are not permitted, neither may a different letter have the same digital value as another letter.

Using words.txt (right click and 'Save Link/Target As...'), a 16K text file containing nearly two-thousand common English words, find all the square anagram word pairs (a palindromic word is NOT considered to be an anagram of itself).

What is the largest square number formed by any member of such a pair?

NOTE: All anagrams formed must be contained in the given text file.


题目:

将单词 CARE 中的字母分别用 1,2,9 和 6 替换,我们得到一个平方数: QQ20160812-1@2x.png 。令人惊奇的是,用同样的数字替换,CARE 的变位词 RACE,同样能够构成一个平方数: QQ20160812-2@2x.png 。我们将 CARE(和 RACE)叫做一个平方变位词对,并规定前置的 0 是不允许的,同时也不允许不同的字母用相同的数字替换。

p098_words.txt (15.96 KB, 下载次数: 14) 包含将近两千个常用英语单词,找出其中所有的平方变位词对(一个回文单词不被认为是它自己的变位词)。

这些变位词对中能形成的最大的平方数是多少?

注意:所有的变位词必须是文件中包含的单词。

想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

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

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2024-5-4 03:05

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表