Search found 4 matches

by Ghaverves
Mon Dec 27, 2010 4:11 pm
Forum: Volume 103 (10300-10399)
Topic: 10363 - Tic Tac Toe
Replies: 54
Views: 33250

Re: 10363 - Tic Tac Toe

Can't seem to get the logic right.

If O wins,
number of X == number of O and X does not win.

If X wins,
number of X == number of O + 1 and O does not win.

Otherwise,
as long as number of X >= number of O, it is correct. <<--- this is wrong

Code: Select all

removed after ac...
by Ghaverves
Thu Dec 16, 2010 2:34 pm
Forum: Volume 3 (300-399)
Topic: 394 - Mapmaker
Replies: 22
Views: 11030

394 - Mapmaker

Keep getting WA.
Would appreciate some help,


Test case that I've used:

4 7
ONE 1500 2 2 0 3 1 5
TWO 2000 4 3 1 4 0 5 5 10
THREE 3000 1 1 1 9
FOUR 5000 3 4 0 4 19 22 22 32 9 12
ONE 2 4
THREE 7
TWO 2 0 6
TWO 3 3 9
FOUR 1 20 23 11
FOUR 4 21 31 9
THREE 8


Output from my code

ONE[2, 4 ...
by Ghaverves
Thu Dec 16, 2010 2:28 pm
Forum: Volume 2 (200-299)
Topic: 272 - TEX Quotes
Replies: 136
Views: 56633

Re: 272 - TeX Quotes

Thanks :)
you caught the error
by Ghaverves
Mon Dec 13, 2010 2:52 pm
Forum: Volume 2 (200-299)
Topic: 272 - TEX Quotes
Replies: 136
Views: 56633

Re: 272 - TeX Quotes

Can anyone help with my code?
It's such a simple question and I keep getting wrong answer.
It is really frustrating.

Code: Select all

removed after AC

Go to advanced search