Wealth disparity HELP HELP HELP

PLEASE HELP !!!
QUE link :https://www.codechef.com/INOIPRAC/problems/INOI1601
can’t get the answer correct
my program always passes in my personal test cases . but can’t get it right here
provide me with the test cases please
here is my code in python 3 : https://www.codechef.com/viewsolution/29010552
please help