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

Jairls18 Accepted !!! =) [4] // Problem 1025. Democracy in Danger 30 Mar 2013 01:32
[code deleted]

Edited by moderator 20.11.2019 00:02
candide Re: Accepted !!! =) // Problem 1025. Democracy in Danger 10 May 2013 02:59
One line in Python!
Iamyeasin Re: Accepted !!! =) [1] // Problem 1025. Democracy in Danger 29 Oct 2017 14:14
I understood the solution. But I didn't understand the logic, why 1 is added before dividing the number?

Thank you.
Skeef79 Re: Accepted !!! =) // Problem 1025. Democracy in Danger 25 Nov 2018 22:20
Because to get vote from i group you need to have more than a half votes. For example,
If 7 you have 7 guys in a group, you need to have 4 votes.
7/2 = 3
3+1 = 4
M. Imamul Hassan Khan Re: Accepted !!! =) // Problem 1025. Democracy in Danger 7 Apr 2019 15:05
Why you sorted the array?. Is there any need of it?.