qztoby74315 发表于 2014-8-30 11:39

2000除以一个两位数,商和余数的积最大是多少?

2000除以一个两位数,商和余数的积最大是多少?要有详细的解题过程

Complicated 发表于 2014-8-30 15:52

这个拿C编程序就可以了吧

wy617958197 发表于 2014-9-2 13:04


多谢分享资料!

我用三天来建模 发表于 2015-3-21 00:09

最优化模型吧

unruly2413 发表于 2015-8-11 09:05


#include<stdio.h>
#if(1)
int js(int num)
{
        int a, b, cj;
        a = 2000 / num;
        b = 2000 % num;
        cj = a * b;
        printf("2000 / 29 = %d\n2000 % 29 = %d\n%d * %d = %d\n", a, b,a, b, cj);
}
void main()
{
        int s , y, i, n, nn = 0, num;
        for(i = 10; i<= 99; i++)
        {
                s = 2000 / i;
                y = 2000 % i;
                n = s * y;
                if(nn < n)
                {
                        nn = n;
                        num = i;
                }
        }
        printf("The result is 2000 / %d is max: %d\n",num, nn);
        js(num);
}


#endif

1324350013 发表于 2020-3-4 18:22

想看答案!
页: [1]
查看完整版本: 2000除以一个两位数,商和余数的积最大是多少?