+ 1
[ADVERTISEMENT] This actually works
https://code.sololearn.com/cH1pRP9bQVMm/?ref=app If didn't work make sure your calculation are correct and please drop a like
2 Answers
+ 12
+ 2
I know how this works:
Suppose you choose x.
S1 : Double x. => 2x.
S2 : Add 10 => 2x + 10.
S3 : Donate Half => x + 5.
S4 : Subtract x => 5.
You are now left with 5, no matter what you chose.
Not a big deal now. Try developing something more useful next time.