ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1163. Chapaev

Show all messages Hide all messages

Then could anyone help me see why I get WA #3 with this prog? Maigo Akisame (maigoakisame@yahoo.com.cn) 27 Oct 2004 04:45
I use binary representation of the chessboard.

Edited by moderator 28.10.2004 02:55
I may be mistaking, but... (+) Michael Rybak (accepted@ukr.net) 27 Oct 2004 15:57
I believe you fill the white[] and red[] arrays in wrong order. When you're calculating white[p], you must have already had calculated red[p and go[i,j]], but it may happen that you hadn't.