Codeforces 564A

i dint understand the logic

Hey, we already know the x and y votes.So,for z, make all equal to either x or y, if result is same then it clearly means other result are not possible.As,for any other case z votes will distruibute between the x and y and hence it will get lesser than any one of two.

i think you are giving explaination of other question

my question is regarding 564 A of codeforces which is based on greedy , piles and arrays

Can you please provide me the link?
When i am searching 564A,then different question comes

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.