All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Logic
Finding Average (Posted on 2013-04-01) Difficulty: 1 of 5
Three coworkers would like to know their average salary. However, they are self-conscious and don't want to tell each other their own salaries, for fear of either being ridiculed or getting their houses robbed. How can they find their average salary, without disclosing their own salaries?

No Solution Yet Submitted by Danish Ahmed Khan    
Rating: 1.5000 (2 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Solution No Subject | Comment 3 of 9 |

The first worker   writes   S =his salary +N (his secret number ),
 passes it to the second worker.
The second worker adds his salary to S and passes this new  sum to the third.
The third worker    adds     his salary  and passes this new  S to the   first.

The first worker subtracts his secet number N.

He divides the result by 3 and gets the av. salary

  Posted by Ady TZIDON on 2013-04-01 11:45:10
Please log in:
Remember me:
Sign up! | Forgot password

Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (1)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Copyright © 2002 - 2019 by Animus Pactum Consulting. All rights reserved. Privacy Information