Forgot password
 Register account
View 1633|Reply 10

填数字使等式成立

[Copy link]

414

Threads

1641

Posts

15

Reputation

Show all posts

abababa posted 2014-6-16 12:47 |Read mode
把0到9填入*号处,7和5已经写好了,每个数字只用一次,使等式成立
7 / * = * * / * * + * * / * 5
我试了一些找不出答案,也猜测这个等式是无解的,数字这么少应该能编程吧,可惜我不懂编程,请会的帮忙算一算

412

Threads

1432

Posts

3

Reputation

Show all posts

realnumber posted 2014-6-16 13:44
程序显示唯一解7/2=39/18+60/45
刚学smallbasic,编得难看就不发程序了.

84

Threads

2340

Posts

4

Reputation

Show all posts

其妙 posted 2014-6-16 15:36
回复 2# realnumber
发一下嘛,也学习一下怎么编程的,

414

Threads

1641

Posts

15

Reputation

Show all posts

original poster abababa posted 2014-6-16 15:37
回复 2# realnumber

谢谢,虽然不会编程,但感觉这类问题用程序做很简单,是有限的不太大的组合种数

84

Threads

2340

Posts

4

Reputation

Show all posts

其妙 posted 2014-6-16 16:39
唯一解7/2=39/18+60/45,这里的60/45居然是没约分的!晕!

412

Threads

1432

Posts

3

Reputation

Show all posts

realnumber posted 2014-6-16 17:44
$type 找算式.sb (4.33 KB, Downloads: 1261) 回复 3# 其妙
语法功能都不太清楚,直接搜索smallbasic,安装后可以打开

84

Threads

2340

Posts

4

Reputation

Show all posts

其妙 posted 2014-6-16 19:23
回复 6# realnumber
谢谢

81

Threads

434

Posts

12

Reputation

Show all posts

tommywong posted 2014-6-16 21:17
我编了个matlag的,但速度没realnumber那个快
  1. c=[0 1 2 3 4 6 8 9];k1=length(c);
  2. k2=8;
  3. n1=0;n2=10;
  4. for x=0:k1^k2-1
  5.     b=zeros(1,k2);
  6.     for y=1:k2
  7.         r=rem(fix(x*k1^(1-y)),k1)+1;
  8.         b(r)=b(r)+1;
  9.         if(b(r)>1)break;end
  10.     end
  11.     if(max(b)>1)continue;end
  12.     a=zeros(1,k2);
  13.     for y=1:k2
  14.         a(y)=c(rem(fix(x*k1^(1-y)),k1)+1);
  15.     end
  16.     if(7/a(1)==(10*a(2)+a(3))/(10*a(4)+a(5))+(10*a(6)+a(7))/(10*a(8)+5))
  17.         fprintf('%d ',a);fprintf('\n');
  18.         n1=n1+1;
  19.     end
  20.     if(n1==n2)break;end
  21. end
Copy the Code
现充已死,エロ当立。
维基用户页:https://zh.wikipedia.org/wiki/User:Tttfffkkk
Notable algebra methods:https://artofproblemsolving.com/community/c728438
《方幂和及其推广和式》 数学学习与研究2016.

84

Threads

2340

Posts

4

Reputation

Show all posts

其妙 posted 2014-6-16 21:30
回复 8# tommywong
qb的你会编写吗?

673

Threads

110K

Posts

218

Reputation

Show all posts

kuing posted 2014-6-17 00:49
回复 6# realnumber

原来还有后缀名叫 sb 的文件……

412

Threads

1432

Posts

3

Reputation

Show all posts

realnumber posted 2014-6-17 11:56
回复 10# kuing


   挺合适的,有qbasic基础的话,学半小时就会了.

Quick Reply

Advanced Mode
B Color Image Link Quote Code Smilies
You have to log in before you can reply Login | Register account

$\LaTeX$ formula tutorial

Mobile version

2025-7-22 15:26 GMT+8

Powered by Discuz!

Processed in 0.013339 seconds, 25 queries