找回密码

碧海潮声大学生网

查看: 783|回复: 13
打印 上一主题 下一主题

一个数学问题

[复制链接]
跳转到指定楼层
1#
发表于 2006-10-22 17:28 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
一个布店卖布,布是49.36一米,账簿看不清楚了,卖了多少米不知道,只知道是整数,而且卖出的布的总额的前两个数也看不清了,只看到后面是7.28,问卖了几米布
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享分享 顶 踩
2#
发表于 2006-10-22 19:19 | 只看该作者
8...........
3#
发表于 2006-10-22 19:41 | 只看该作者
[mop098]  [mop098] 是正常的还是脑筋急转弯
4#
发表于 2006-10-22 21:31 | 只看该作者

实在求不出

5#
发表于 2006-10-22 21:57 | 只看该作者
不知道~头痛
6#
发表于 2006-10-22 22:02 | 只看该作者
两个数从10到99都试了都不行啊
7#
发表于 2006-10-22 22:25 | 只看该作者
[s:29]  [s:29]
8#
发表于 2006-10-22 22:28 | 只看该作者
我连笔都找不到了。。。这种题也算不出
9#
发表于 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]
10#
发表于 2006-10-23 09:06 | 只看该作者
不会吧  题目有问题你也算啊
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|小黑屋| 碧海潮声大学生网  

Copyright © 2001-2013 Comsenz Inc.   All Rights Reserved.

Powered by Discuz! X3.2( 浙ICP备11026473号 )

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