ENG
RUS
Timus 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
1003
. Parity
Varun Sharma
Algorithm
[1] // Problem
1003. Parity
12 Apr 2009 16:16
Hi Guys,
I am just wondering what kind og algorithm is needed to solve this problem ? I wrote some program but it is not working for harder test cases ? Do we need to build some kind of graph etc. to solve this problem ?
Thanks
Pavel Otchertsov
Re: Algorithm
// Problem
1003. Parity
14 Apr 2009 02:02
disjoint set ;)
© 2000–2024
Timus Online Judge Team
. All rights reserved.