|
|
вернуться в форумAccepted !!! =) [code deleted] Edited by moderator 20.11.2019 00:02 Re: Accepted !!! =) One line in Python! Re: Accepted !!! =) I understood the solution. But I didn't understand the logic, why 1 is added before dividing the number? Thank you. Re: Accepted !!! =) 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 !!! =) Why you sorted the array?. Is there any need of it?. |
|
|