That is exactly what you have to figure out in this problem! ;-)
Perfect strategy means: If there IS a move that leads to a winning situation, you do that move, and no other. Imagine you are calculating all possible moves in the game, and determine if a move is winning, or loosing (or maybe ...
Search found 108 matches
- Sat Dec 06, 2003 1:26 pm
- Forum: Volume 105 (10500-10599)
- Topic: 10578 - The Game of 31
- Replies: 11
- Views: 7253
- Mon Nov 10, 2003 3:51 pm
- Forum: Volume 4 (400-499)
- Topic: 446 - Kibbles "n" Bits "n" Bits "n" Bits
- Replies: 50
- Views: 11466
- Mon Nov 10, 2003 11:15 am
- Forum: Volume 4 (400-499)
- Topic: 446 - Kibbles "n" Bits "n" Bits "n" Bits
- Replies: 50
- Views: 11466
- Sun Nov 09, 2003 11:12 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10127 - Ones
- Replies: 32
- Views: 18069
- Sun Nov 09, 2003 3:12 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10002 - Center of Masses
- Replies: 59
- Views: 32601
Btw, the definition of "Center of mass" is quite easy: Suppose you make the polygon out of wood (make it massive), and try to balance it on the tip of your finger. The center of mass is the single point where it will not fall off your finger.
I think many people here are confused with the center of ...
I think many people here are confused with the center of ...
- Sun Nov 09, 2003 3:06 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10002 - Center of Masses
- Replies: 59
- Views: 32601
- Sun Nov 09, 2003 12:52 pm
- Forum: Volume 105 (10500-10599)
- Topic: 10578 - The Game of 31
- Replies: 11
- Views: 7253
- Sat Nov 08, 2003 8:25 pm
- Forum: Volume 105 (10500-10599)
- Topic: 10578 - The Game of 31
- Replies: 11
- Views: 7253
10578 - The Game of 31
Hi everyone!
I tried to do 10578 and was surprised to get WA... First of all I'm a little unsure how to handle the input.. for example if there is an empty line at the end of the input I should treat it as being a test case, right ? And what if there is a \n at the end of the last line but nothing ...
I tried to do 10578 and was surprised to get WA... First of all I'm a little unsure how to handle the input.. for example if there is an empty line at the end of the input I should treat it as being a test case, right ? And what if there is a \n at the end of the last line but nothing ...
- Fri Nov 07, 2003 9:10 pm
- Forum: Volume 1 (100-199)
- Topic: 119 - Greedy Gift Givers
- Replies: 145
- Views: 47353
- Fri Nov 07, 2003 1:21 am
- Forum: Volume 8 (800-899)
- Topic: 847 - A Multiplication Game
- Replies: 41
- Views: 28183
- Thu Nov 06, 2003 6:23 pm
- Forum: Volume 105 (10500-10599)
- Topic: 10566 - Crossed Ladders
- Replies: 39
- Views: 16251
- Thu Nov 06, 2003 11:04 am
- Forum: Volume 100 (10000-10099)
- Topic: 10032 - Tug of War
- Replies: 91
- Views: 43604
- Thu Nov 06, 2003 1:07 am
- Forum: Volume 105 (10500-10599)
- Topic: 10566 - Crossed Ladders
- Replies: 39
- Views: 16251
- Tue Nov 04, 2003 9:57 pm
- Forum: Volume 105 (10500-10599)
- Topic: 10566 - Crossed Ladders
- Replies: 39
- Views: 16251
- Sun Nov 02, 2003 6:25 pm
- Forum: Volume 105 (10500-10599)
- Topic: 10529 - Dumb Bones
- Replies: 15
- Views: 12632