Friday, November 17, 2006
Tuesday, November 14, 2006
Royale Theme & Zune Desktop Theme
Saturday, November 11, 2006
Going Downtown
The Downtown area of Grid City consists of 10 intersecting streets in a 5x5 grid. Most of the intersections are 4-way, but exactly one intersection on each street is actually an overpass, one street going over the other, forcing drivers to keep straight.
Four different men (with license plates 5, 7, 8, and 9) enter and exit downtown in different spots. Some facts about their routes are as follows:
* No driver enters the same intersection more than once.
* At each non-overpass intersection, all drivers that entered it from north/south turned a certain way (right or left) at that particular intersection, and all drivers that entered it from east/west turned the opposite way.
* The number of turns each driver made downtown equals the number on his license plate.
Given this map of the region, where does 5 exit downtown, and what paths do each of them take?
Four different men (with license plates 5, 7, 8, and 9) enter and exit downtown in different spots. Some facts about their routes are as follows:
* No driver enters the same intersection more than once.
* At each non-overpass intersection, all drivers that entered it from north/south turned a certain way (right or left) at that particular intersection, and all drivers that entered it from east/west turned the opposite way.
* The number of turns each driver made downtown equals the number on his license plate.
Given this map of the region, where does 5 exit downtown, and what paths do each of them take?
Download Firefox 2.0!
http://www.mozilla.com/products/download.html?product=firefox-2.0&os=win&lang=en-US
Tuesday, November 07, 2006
UPDATED!: Brutal Dictator
The last day the King could kill the condemned man is Saturday. The King promised not to let him know he is going to be shot next day. However, if he is going to be killed in Saturday, when he is still alive on Friday evening, he knows he is going to be killed tomorrow (since Saturday is the last day to execute him). So he is not going to be killed on Saturday (because he knows). According to this, he cannot be killed on Friday also (because the King cannot kill him on Saturday, on Thursday he knows he is going to be killed on Friday and so on). Thus, the King couldn't kill him at all.
However in reality, the King killed him at dawn on Tuesday and he didn't lie.
However in reality, the King killed him at dawn on Tuesday and he didn't lie.
Sunday, November 05, 2006
Brutal Dictator
A long time ago, in a country far away, the King sentenced a man to death. He told the
man, “You shall be shot at dawn, one day next week. However, the evening before
you are shot, you will not know that you are going to be shot the next day.”
While the King was a brutal dictator, he never told a lie. The condemned man proved
that it was impossible for him to be executed.
How did he do this and was he correct? [hint: what is the last day he could be shot?]
man, “You shall be shot at dawn, one day next week. However, the evening before
you are shot, you will not know that you are going to be shot the next day.”
While the King was a brutal dictator, he never told a lie. The condemned man proved
that it was impossible for him to be executed.
How did he do this and was he correct? [hint: what is the last day he could be shot?]
C, Java & Visual Basic's 'Hello World!'
ANSI C: http://en.wikipedia.org/wiki/ANSI_C
#include; /* Standard Input Output Header */
int main(int argc, char *argv){ //Main Method
char c = 'Hello World!"; /* Define 'c' As Character & Assign String 'Hello World!' */
printf('%s\n', c); /* Print Line Containing String 'c'(%s), '\n' Returns Next Line */
return(0); /* Returns Program Exit */
} /* HelloWorld.c */
Sun Java 2 Standard: http://en.wikipedia.org/wiki/Sun_java
public class HelloWorld{ // Class (Program) Hello World
public static void main(String []args){ //Main Method
System.out.println("Hello World!"); // Print Line Containg String "Hello World!"
}
} /* HelloWorld.java */
Microsoft Visual Basic 2005: http://en.wikipedia.org/wiki/Visual_Basic_.NET
MsgBox("Hello World!") 'Pop Up Message Box Showing String "Hello World!"
*Other Structural Syntax Statements Are Automatically Generated
#include
int main(int argc, char *argv){ //Main Method
char c = 'Hello World!"; /* Define 'c' As Character & Assign String 'Hello World!' */
printf('%s\n', c); /* Print Line Containing String 'c'(%s), '\n' Returns Next Line */
return(0); /* Returns Program Exit */
} /* HelloWorld.c */
Sun Java 2 Standard: http://en.wikipedia.org/wiki/Sun_java
public class HelloWorld{ // Class (Program) Hello World
public static void main(String []args){ //Main Method
System.out.println("Hello World!"); // Print Line Containg String "Hello World!"
}
} /* HelloWorld.java */
Microsoft Visual Basic 2005: http://en.wikipedia.org/wiki/Visual_Basic_.NET
MsgBox("Hello World!") 'Pop Up Message Box Showing String "Hello World!"
*Other Structural Syntax Statements Are Automatically Generated
Subscribe to:
Posts (Atom)