碧海潮声大学生网

标题: 一个数学问题 [打印本页]

作者: 樱雪    时间: 2006-10-22 17:28
标题: 一个数学问题
一个布店卖布,布是49.36一米,账簿看不清楚了,卖了多少米不知道,只知道是整数,而且卖出的布的总额的前两个数也看不清了,只看到后面是7.28,问卖了几米布
作者: ╰☆渗蓝☆╮    时间: 2006-10-22 19:19
8...........
作者: 穷的没早餐    时间: 2006-10-22 19:41
[mop098]  [mop098] 是正常的还是脑筋急转弯
作者: 墙角野猫    时间: 2006-10-22 21:31

实在求不出


作者: “药粉”小梅    时间: 2006-10-22 21:57
不知道~头痛
作者: 墙角野猫    时间: 2006-10-22 22:02
两个数从10到99都试了都不行啊
作者: zheng88jk    时间: 2006-10-22 22:25
[s:29]  [s:29]
作者: 一幢的人    时间: 2006-10-22 22:28
我连笔都找不到了。。。这种题也算不出
作者: 我是誰    时间: 2006-10-23 00:01
引用第0楼樱雪2006-10-22 17:28发表的“一个数学问题”:
  一个布店卖布,布是49.36一米,账簿看不清楚了,卖了多少米不知道,只知道是整数,而且卖出的布的总额的前两个数也看不清了,只看到后面是7.28,问卖了几米布

布价尾数为6,6只有与3及8乘能得到8,又因为总额只有前两个数看不清,那总额应小于1000,姑且从3到100之间来试吧:
  1.       /// <summary>
  2.       /// Here is the C# code to resolve this problem.
  3.       /// </summary>
  4.       static void Main(string[] args)
  5.       {
  6.         string totalMoney = "";
  7.         for(int theLength=3;theLength<100;theLength+=5)
  8.         {
  9.            totalMoney = (theLength * 49.36).ToString();
  10.            if ( totalMoney.EndsWith("7.28"))
  11.            {
  12.               Console.WriteLine("The length maybe is {0} meters,and the income is {1}", theLength, totalMoney);
  13.            }
  14.         }
  15.       }
复制代码

结果出来了,The length maybe is 98 meters,and the income is 4837.28
看来题目稍有点问题,总额小数点前不止三位。那么加大查找范围,在一千以内计算,结果为
The length maybe is 223 meters,and the income is 11007.28
The length maybe is 348 meters,and the income is 17177.28
The length maybe is 473 meters,and the income is 23347.28
The length maybe is 598 meters,and the income is 29517.28
The length maybe is 723 meters,and the income is 35687.28
The length maybe is 848 meters,and the income is 41857.28
The length maybe is 973 meters,and the income is 48027.28

回答完毕!
觉得算得好的,请送花吧,嘿嘿
[s:40]  [s:69]
作者: 中国台湾    时间: 2006-10-23 09:06
不会吧  题目有问题你也算啊
作者: 樱雪    时间: 2006-10-24 17:56
楼上滴...题目米问题滴....
作者: 王宏    时间: 2006-10-25 10:35
提示: 作者被禁止或删除 内容自动屏蔽
作者: 我是誰    时间: 2006-10-25 11:51
题目应该有点小问题吧?”卖出的布的总额的前两个数也看不清了,只看到后面是7.28“,这句话是不是表明总额应该是xx7.28呢?但我前面的计算结果,最小的数只有4837.28,多了一位数啊。难道我对题目的理解有误?
作者: 墙角野猫    时间: 2006-12-6 17:22
题目绝对有问题啊




欢迎光临 碧海潮声大学生网 (http://www.zjoubbs.com/) Powered by Discuz! X3.2