A Professor asked four students how long each of them had been studying.
One of the students replied: “We have all been studying a whole number of years, the sum of our years of studying is equal to the number of years you have been teaching and the product of our years of studying is 180”.
“I’m sorry”, replied the Professor after some thought, “but that doesn’t give me enough information”.
“Yes, you’re right”, agrees another of the students. “But if we told you that one of us were into double figures in our years of study, then you could surely answer your question”.
How long had each of the four been studying ?
I won't bother posting a redundant solution, though I solved the problem.
..It seems that no matter what time of the day I get on here Charlie has already been through all the new problems. I knew the answer to this one, sadly, because it is very similar to the first problem I submitted, I think around two months ago, which is still sitting in the queue for probably another month and a half before it gets to be voted on.
ohwell
On a side note, what language are you using there? I've seen it around on this site, but it's unfamiliar and dissimilar to any of the C-based languages I know.
|
Posted by DJ
on 2003-04-28 10:32:48 |