#019 · Dominating Number Check · math · easy · python

مشاهده راه‌حل در GitHub



    A dominating number is a positive integer that has more than half of its digits equal.
    For example, 2022 is a dominating number because three of its four digits are equal to 2.
    But 2021 is not a dominating number.
    Input:
        We give You a positive integer number.
    Output:
        if the given number was dominating number, Print "YES" if it's not, print "No".