You and 2 friends want to know the average salary between the three of you without telling your salaries.> Get a piece of paper and write down an enormous number. Add your salary and write that down on a separate paper. Pass the second number to one friend.> He adds his salary, writes that down on another paper, and passes the new number to the other friend.The last friend adds his salary, gives you the number and you subtract the random number you started with.> You divide this by three, and announce the average.Would be nice if any of us had two friends to try this with...
>>16827414Why would you hide your salary from your friends? I don't understand the premise.
>>16827433autism, please understand (he doesn't have friends)
Eh, you just add a number and subtract it, its no different from just adding your salaries and dividing.What really fucked my mind was that card trick Vsauce shows in that youtube short, I still don't know how that works.
>>16827440If you just add your salaries then person 2 will see what person 1 makes, so it is not the same
>>16827447true, i guess the fact that its secret is kinda cool
just write a program that takes an input and hides it from the next person who will provide salary. No need for retarded "enormous" number.
>>16827433It's $CURRENT_YEAR anon, nobody has real friends anymore. Only friendly acquaintances and civil rivals