|
Really? The top of a desk which is remote doesn't help?
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
The apex of a bureau -> The top of a desk -> Desktop.
Far away -> Remote.
|
|
|
|
|
Slaps forehead - it's Monday
We can’t stop here, this is bat country - Hunter S Thompson RIP
|
|
|
|
|
SteveTheThread wrote: far away
Dougal McGuire[^]?
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
@Steve-Solomonn - you solved it on Friday, which means it's your turn to post it today: and it's well overdue!
The Lounge[^]
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Sorry. Completely slipped my feeble mind. Will post something now.
|
|
|
|
|
That's why I have to put it in Google Calendar!
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Math Problem OTD:
You have 1,000 locked rooms and 1,000 people.
The first person unlocks all the doors.
The second person reverses the lock on every second door (since the first person unlocked it, they would relock it).
The thirst person reverses the lock on every third door (unlocked → locked, locked → unlocked).
Etc., up to the 1,000th person.
How many locks are unlocked at the end?
P.S. - This isn't homework. One of my tutees asked me this which I answered.
modified 12-Sep-16 7:08am.
|
|
|
|
|
None - the fourth person was fed up so he started kicking the doors down and everyone else joined in.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Way to think out... of your mind.
|
|
|
|
|
i'll keep it your problem
In Word you can only store 2 bytes. That is why I use Writer.
|
|
|
|
|
I'm an Engineer and I can solve the problem.
How many of the doors you want opened at the end and what is your budget?
GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- ++>+++ y+++* Weapons extension: ma- k++ F+2 X
If you think 'goto' is evil, try writing an Assembly program without JMP. -- TNCaver
When I was six, there were no ones and zeroes - only zeroes. And not all of them worked. -- Ravi Bhavnani
|
|
|
|
|
A little help in the hard way:
namespace MPOTD
{
class Program
{
static void Main(string[] args)
{
Int16[] doors = new Int16[1000];
foreach (int door in doors)
{
doors[door] = -1;
}
for (Int16 unlocker = 1; unlocker <= 1000; unlocker++)
{
if (doors[unlocker - 1] % unlocker == 0)
doors[unlocker - 1] *= -1;
}
Int16 NrUnlocked = 0;
Int16 NrLocked = 0;
foreach (int door in doors)
{
if (doors[door] == -1)
NrLocked++;
else
NrUnlocked++;
}
Console.WriteLine(string.Format("Unlocked: {0}. Locked: {1}", NrUnlocked, NrLocked));
Console.ReadKey();
}
} }
Result: All unlocked
In Word you can only store 2 bytes. That is why I use Writer.
|
|
|
|
|
Reread that. The answer is incorrect.
|
|
|
|
|
Pressed F5, same answer
In Word you can only store 2 bytes. That is why I use Writer.
|
|
|
|
|
Look at door number two. Person one unlocks it. Person two relocks it. Nobody else touches it. It is locked at the end.
|
|
|
|
|
U31
L969
In Word you can only store 2 bytes. That is why I use Writer.
|
|
|
|
|
Correct. Now try it without the program.
|
|
|
|
|
easy:
1000 = 10^3
so 3 * 10 = 30 and door 1 stays unlocked so 31
In Word you can only store 2 bytes. That is why I use Writer.
|
|
|
|
|
Try it for 10 doors and 10 people. Pattern recognition.
|
|
|
|
|
don't get too serious
In Word you can only store 2 bytes. That is why I use Writer.
|
|
|
|
|
11 is the perfect answer
(You only have to change the base)
Skipper: We'll fix it.
Alex: Fix it? How you gonna fix this?
Skipper: Grit, spit and a whole lotta duct tape.
|
|
|
|
|
Nope... the perfect answer is 42
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
|
digimanus wrote: U31 You sunk my battleship!
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|