我只知道一种答案和做法,希望大家帮忙集思广益,只要思路对就行,把过程和不同的结果尽可能多的写上来,
我只知道一种答案和做法,希望大家帮忙集思广益,只要思路对就行,把过程和不同的结果尽可能多的写上来,
1.Find all solutions to the 'alphagram'
I/DO=0.SKISKISKISKI 意思就是每个字母代表一个数,问你这个式子里的字母几个数能符合,比如说有一个答案是:5除以27等于0.185185185 注意(这里每个字母仅代表一位数)
2.Jack and Jill were out waling one day when they saw three people approaching.
'I wonder how old they are'said Jack
'I know them',Jill replied.'the product of their age is 2450 ,and the sum of their ages is twice your age.
Jack thought for a while,and then said,'Sorry,but I need more information.'
'Of course!"responded Jill.'They are all younger than I am.'
Work out all three ages.
意思就是说Jack 和Jill看到三个人过来,他们三个的年龄乘积等于2450,三个人年龄的和等于Jack年龄的两倍。三个人都比Jill小,让你求那三人的年龄。有一种做法好像是带数字进去试,比如说1*25*98 1*49*50等等,这样子慢慢试,有没有别的办法啊?有人知道的一定要把过程也发上来啊,猜的话也要草稿的过程。
第一个是xxx/999 其中xxx是个三位数SKI
第二个有计算机算吧,穷举法
设三个人年龄为x1,x2,x3三个变量 如for(x1=15,x1