[Community Puzzle] Balanced Levers

Coding Games and Programming Challenges to Code Better

Send your feedback or ask for help here!

Created by @java_coffee_cup,validated by @RealCoderBrookes,@OSSFF7 and @MrSkaal.
If you have any issues, feel free to ping them.

Right now the statement says:

All given weights must be used.

But, assuming I properly understand the puzzle, to find a mobile that reaches the expected solution (1.4969) for test 4w #1 it seems one weight must not be used. Unless I am mistaken, using all 4 weights leads to 1.4742 at best.

@java_coffee_cup Could you double-check and either confirm or provide a 4-weight solution please?

1 Like

How about this?
4w_1

2 Likes

Indeed, thanks!

Hi,

I’m in trouble to find the reason why the following is not a solution for 4w #2:

4w #2 has this input:

1.945
4
896 43 13 588

Your diagram have 43 changed into 53, and 588 changed into 558

Ok sorry for the number please waive my mistake in the drawing for now (i’ll need to correct it latter in the day). Any how taking yhe correct numbers, please tell me what would be wrong, as it seems that I have missed something in the rule to obtain this mobile.

; ___|_________
;              |
;       ___?___|____0.9_____
;      |                    |
;  ____|____               896
; |         |
; 13        43

It is a portion of your drawing, simplified.

How did you get the value 0.9?

With this 0.9 length on the right, find the value of the ? length on the left.

Check the lever equilibrium equation again.

my bad I reversed my algo and didn’t spot it…