Gimme some ideas
Послано
PSV 4 июл 2006 16:25
I can't understand how can it take 1 sec to solve for N = 1000
My biggest ideas is something like a system of equations by modulo 2, but ...
Some hints please...
Please
Послано
PSV 5 июл 2006 05:49
Please one small pour hint
Re: Please
Послано
PSV 7 июл 2006 00:24
Please. I still have any ideas. May be finding of circles?
Re: Please
linear module equations will work.
try to rewrite it into a simpler form and you will achieve it!
Where can I read about solving linear module equations?(+)
Послано
SPIRiT 27 сен 2007 21:11
I found a lot of material about modular arithmetic itself, but nothing about systems of equations modulo 2. There is a problem 1042 that I solved using an intuitive algo. But I don't have any materials about those kind of problems... Any links in Internet are available.
Re: Where can I read about solving linear module equations?(+)
Послано
svr 27 сен 2007 21:49
I haven't AC but sure that 1458 is a problem with
great mathematical background.
In matrix language Sulman command is equal to
transformation of tipe A[j]*B*A[k]
where A[j]=diag[1,1,1,...,-1,1,1,1,1..]
So, read about minimal step of transformations to standard form. Also, sequence of such transformation is code
for arbitrary 0-1 matrix. Sure that authors create the problem during reading about 0-1 matrix, transformations and coding.
Re: Where can I read about solving linear module equations?(+)
You're A LOOSER.I've done this program to 1 minute!!!
Re: Where can I read about solving linear module equations?(+)
Послано
svr 27 сен 2007 22:45
Each has It's own way and all of us are training to contests.
But even after you words the problem does't seem to me
as simple. Often such quick solutions depend on temporary
weakeness of tests.
RE: program in one minute?(+)
Послано
SPIRiT 28 сен 2007 13:48
Well, then, where is your AC for this problem? You have no AC's at all...
Re: RE: program in one minute?(+)
Just find a way to flip some cell without affecting others. It's easy for even N.
Edited by author 03.08.2008 11:31
Re: Where can I read about solving linear module equations?(+)
Послано
svr 11 янв 2009 11:29
Ac after some period!
I did'n beleve that O-1 equation method can help.
We have 10^6 unknowns and O(10^18) Gauss.
But I had expierence for large systems with itteration
method(as for Puasson eqution) and this method works here.
But after I understood that the matrix of the system is
nilpotent because nature of smoothing operator
and itteration method has right foundation.
Edited by author 10.02.2009 09:24
Re: RE: program in one minute?(+)
Just find a way to flip some cell without affecting others.
Thanks!