|
Тема |
Една задача и от мен :) [re: Om_] |
|
Автор |
portal (ветеран) |
|
Публикувано | 24.02.12 21:11 |
|
|
X and Y are two different integers, greater than 1, with sum less than 100. S and P are two mathematicians; S knows the sum X+Y, P knows the product X*Y, and both know the information in these two sentences. The following conversation occurs.
P says "I cannot find these numbers."
S says "I was sure that you could not find them."
P says "Then, I found these numbers."
S says "If you could find them, then I also found them."
What are these numbers?
Бях въвлечен в наемане на хора, казах им, че с тази задача са пълни тъпаци да наемат девлопъри.. но мен ме загложди, ударих го на чест... седнах си на гъзо... отне ми 6 часа да я реша барабар с кода... в своя защита ще кажа, че беше след работен ден и след игра с малкия :)
СПОИЛЕР: Казва се the impossible puzzle за тези които искат да потърсят в нетя...
Revolution, the only solution,
The armed response of an entire nation
System of a Down P.L.U.C.K.
|
| |
|
|
|