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 1025. Democracy in Danger

1025 WA#2 (C)
Posted by kh1024 27 Jan 2015 05:34
Issue resolved, see below!

Edited by author 27.01.2015 05:49
Re: 1025 WA#2 (C)
Posted by kh1024 27 Jan 2015 05:35
So, be careful if manually calculating - subtle fact is that the aggregate majority of a sequence of numbers may not actually represent the majority from each individual group, for example (from another thread):

5
5 5 5 5 5
=> 9

But at first, I naively calculated (5+5+5)/2 + 1, which works in other group sizes but not for duplicate numbers. So, just keep that in mind :)

Edited by author 27.01.2015 05:49