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 1561. Winnie the Pooh

Wa8
Posted by svr 27 Sep 2007 10:49
What is specific in test 8.
Rather simple problem on Gauss in field {0,1,2,3,4,5,6}
but WA 8.
May be tricks in input?
Re: Wa8
Posted by svr 27 Sep 2007 11:36
Soon after message I have understood my mistake:
"crazy" must be repeted to end of input but I
interrupted output on this sentenses.
By the way, after these troubles I am first
in raiting of 1561 due
to array
char add1[7][7]={
    {0,1,2,3,4,5,6},
    {1,2,3,4,5,6,0},
    {2,3,4,5,6,0,1},
    {3,4,5,6,0,1,2},
    {4,5,6,0,1,2,3},
    {5,6,0,1,2,3,4},
    {6,0,1,2,3,4,5}
};
for addition and similar other arrays.