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 1003. Parity

Why is the answer 9?
Posted by k_dmitry 4 Mar 2008 00:41
Here is the test, i took it from ceoi99 web-page, and they say that right answer is 9. I can't understand why.
--
1000000000
10
1 100000000 even
100000001 200000000 even
200000001 300000000 even
300000001 400000000 even
400000001 500000000 even
1 500000000 even
1 1000000000 odd
100010001 200200000 odd
200000001 404000000 even
1 404000000 odd

Edited by author 04.03.2008 00:41
Re: Why is the answer 9?
Posted by wuchun 12 Mar 2009 16:36
1 100000000+100000001 200000000+200000001 404000000=1 404000000
But even+even+even<>odd