Jiggles got it right this time.. Well done Your turn.
Jiggles got it right this time.. Well done Your turn.
ok,
this is sort of similar to yours,
a woman shoots her husband.
then she holds him under water for over 5 minutes.
finally, she hangs him.
but 5 minutes later they both go out together and enjoy a wonderful dinner together.
how can this be?
yes your right bigboab,
here is the full answer-
The woman was a photographer. She shot a picture of her husband, developed it, and hung it up to dry.
Given a list of integer variables A. B .C. D. E. F.
each contain an integer.
You are required to reverse the contents of the variables so that A = F. B = E. C = D. D = C. E = B. F = A.
You are not allowed to use any other variables.
i.e. If you start of with
A = 1. B = 2. C = 3. D = 4. E = 5. F = 6.
You should end up with
A = 6. B = 5. C = 4. D = 3. E = 2. F = 1.
Computer programmers should find this easy.
The best way to keep a secret:- Tell everyone not to tell anyone.
Good one!
Obviously, normally I'd use another variable, but without that it makes it interesting.
I think this should work:
Spoiler: Show
Set A = A + F
Set F = A - F
Set A = A - F
Set B = B + E
Set E = B - E
Set B = B - E
Set C = C + D
Set D = C - D
Set C = C - D
Not very elegant, but if you work through the example..
Starting with A=1,F=6
A = A + F : ( A = 1 + 6 = 7 )
F = A - F : ( F = 7 - 6 = 1 )
A = A - F : ( A = 7 - 1 = 6 )
etc.
Two numbers m and n are chosen such that 1 < m <= n < 100.
Mr. S. is told their sum.
Mr. P. is told their product.
The following dialogue takes place:-
Mr. P.: "I don't know the numbers."
Mr. S.: "I know that you don't know the numbers. I don't know them either."
Mr. P.: "Now I know them."
Mr. S.: "Now I know them, too."
What are the two numbers?
Is this the answer?
Spoiler: ShowM = 2
N = 2
The best way to keep a secret:- Tell everyone not to tell anyone.
here's a riddle-
If a man carried my burden, he would break his back.
I am not rich, but leave silver in my track.
What am I?
Bookmarks