|
-
Jan 15th, 2004, 07:53 PM
#1
Thread Starter
Addicted Member
hmm...more tricky word probs...
Four suspects of a crime made the following statements to the police:
Andy: Carl did it
Bob: I did not do it.
Carl: Dave did it.
Dave: Carl lied when he said I did it.
Given that exactly one of them "did it" and that exactly one told the truth. Who did it?
- you've been privileged to read a post by Miz
-
Jan 15th, 2004, 08:32 PM
#2
Fanatic Member
If Bob told the truth, that means he did it. Therefore, Dave would have also told the truth about Carl lying that he did it. We can have two truth speakers. Therefore, Bob lied--and he did it. Dave told the truth.
Another way: If Dave had lied, both Bob and Carl were telling the truth, so Dave could not have lied. Because Dave told the truth Bob must have lied--and did it.
-
Jan 16th, 2004, 11:03 AM
#3
transcendental analytic
also Andy could have done it, Dave speaking the truth
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Jan 16th, 2004, 12:53 PM
#4
Member
In short Bob did it & the 4th person in list told the truth.
Thread resolved!!!
-
Jan 16th, 2004, 09:30 PM
#5
Fanatic Member
Originally posted by kedaman
also Andy could have done it, Dave speaking the truth
Then both Dave and Bob told the truth. Not allowed. See my post: If Dave told the truth, then Bob must have lied--and did it. (My first way is a bit jumbled, just look at the "another way:" bit).
Last edited by WorkHorse; Jan 16th, 2004 at 09:36 PM.
-
Jan 16th, 2004, 09:42 PM
#6
transcendental analytic
you're right, didn't think straight there..
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|