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

Accepted !!! =)
Posted by Jairls18 30 Mar 2013 01:32
[code deleted]

Edited by moderator 20.11.2019 00:02
Re: Accepted !!! =)
Posted by candide 10 May 2013 02:59
One line in Python!
Re: Accepted !!! =)
Posted by Iamyeasin 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.
Re: Accepted !!! =)
Posted by Skeef79 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
Re: Accepted !!! =)
Posted by M. Imamul Hassan Khan 7 Apr 2019 15:05
Why you sorted the array?. Is there any need of it?.