forum

Please help me!!

posted
Total Posts
31
Topic Starter
Ashton
My math teacher posts a challenge of the week every day... the reward if you get it right? 1 sour key!! And I love sour keys! Also the grand prize is 5 sour keys!!



Please answer this:

Make 45 in as many ways as possible using these numbers:

4 5 6 7 8 9

You can’t use the same number twice. Any answers except “just use 4 and 5 to make 45!!”

Ty
keremaru
5*9
6*8 that's 48 keremal you idiot
and that's all i got.
abraker
numbers = [ 5, 6, 7, 8, 9 ]
answers = []
used = []
target = 45

for i in range(0, len(numbers)):
for j in range(0, len(numbers)):
if i == j: continue
if numbers[i] * numbers[j] == 45:
if not numbers[i] in used and not numbers[j] in used:
answers.append([numbers[i], numbers[j]])
used.append(numbers[i]); used.append(numbers[j])

for answer in answers:
print(answer)


if you don't know how to use this, suck to be you
yuhaii

abraker wrote:

numbers = [ 5, 6, 7, 8, 9 ]
answers = []
used = []
target = 45

for i in range(0, len(numbers)):
for j in range(0, len(numbers)):
if i == j: continue
if numbers[i] * numbers[j] == 45:
if not numbers[i] in used and not numbers[j] in used:
answers.append([numbers[i], numbers[j]])
used.append(numbers[i]); used.append(numbers[j])

for answer in answers:
print(answer)


if you don't know how to use this, suck to be you
semaphore
why do you quote people for no reason that's like going on yahoo answers and replying with "i don't know sorry"
yuhaii
cause i can
abraker
you heard the skrub


𝓣𝓗𝓔 𝓘 𝓒𝓐𝓝
yuhaii
lmfao
AyeAries
tfw math XD
Naimae

abraker wrote:

numbers = [ 5, 6, 7, 8, 9 ]
answers = []
used = []
target = 45

for i in range(0, len(numbers)):
for j in range(0, len(numbers)):
if i == j: continue
if numbers[i] * numbers[j] == 45:
if not numbers[i] in used and not numbers[j] in used:
answers.append([numbers[i], numbers[j]])
used.append(numbers[i]); used.append(numbers[j])

for answer in answers:
print(answer)


if you don't know how to use this, suck to be you
this doesn't work.
you're forgetting that you can probably use more than two numbers at a time and also that there are more operations other than multiplication
E m i
ban math in ot plz
abraker

citremi wrote:

this doesn't work.
it kinda works but not because

citremi wrote:

there are more operations other than multiplication
I totally did forget that. Multiplication provided in example, lock and loaded. Nothing else mattered for the amount of effort I was going to put into this thing

citremi wrote:

you're forgetting that you can probably use more than two numbers at a time

Canadian Baka wrote:

You can’t use the same number twice.
^this statement is vague, but luckily if what you say is true the fix is the removal of just one line

Baka's problem not mine
Green Platinum
7^(8-6)-4

Here's my contribution
levesterz
yuhaii

levesterz wrote:

https://arxiv.org/abs/1302.1479
hope this help
i dont think so
Perfection

Momi wrote:

ban math in ot plz
i agree
Topic Starter
Ashton

abraker wrote:

citremi wrote:

this doesn't work.
it kinda works but not because

citremi wrote:

there are more operations other than multiplication
I totally did forget that. Multiplication provided in example, lock and loaded. Nothing else mattered for the amount of effort I was going to put into this thing

citremi wrote:

you're forgetting that you can probably use more than two numbers at a time

Canadian Baka wrote:

You can’t use the same number twice.
^this statement is vague, but luckily if what you say is true the fix is the removal of just one line

Baka's problem not mine


You literally just dabbed using a cat picture...
abraker

Canadian Baka wrote:

You literally just dabbed using a cat picture...
yes, yes I did, or so I believe I did.
GSG95
please ban dabbing from OT
Naimae

abraker wrote:

citremi wrote:

you're forgetting that you can probably use more than two numbers at a time

Canadian Baka wrote:

You can’t use the same number twice.
^this statement is vague, but luckily if what you say is true the fix is the removal of just one line

Baka's problem not mine
using three numbers at the same time != using the same number more than twice
abraker

citremi wrote:

using three numbers at the same time != using the same number more than twice
I am officially illiterate and can't logic







I need someone with professional experience to reach into my organic thinking unit and reset the switch labeled "in case of idiocy switch on-off"
ColdTooth
I'd like to contribute.

9(5 x 74) divided by 75 + .6
Topic Starter
Ashton

ColdTooth wrote:

I'd like to contribute.

9(5 x 74) divided by 75 + .6
7 is used twice
abraker

Canadian Baka wrote:

7 is used twice
read that as

johnmedina999
Why would you ever name your Pokémon "7"?

*Insert Seinfeld reference here*
ColdTooth
ColdTooth has used nothing.

It's super effective.
Saturnalize
45*(6-7)*(8-9)
abraker

Saturnalize wrote:

45*(6-7)*(8-9)
more bumbers
Saturnalize
ex called me necromancer because I keep remembering past things with him that I should've buried deep
abraker

Saturnalize wrote:

ex called me necromancer because I keep remembering past things with him that I should've buried deep
Necromany has latin roots "necro" - black and greek roots "mancy" - practice by a specified means. For it to refer to memories I'd call it "memoriamancy". So you are a memoriamancer
Saturnalize
I'd take it
Please sign in to reply.

New reply