⌨️

[AtCoder]ABC-164|B - Battle

2023/03/11に公開

設問ページ

提出結果

def getIntMap():
    return map(int, input().split())


def main():
    a, b, c, d = getIntMap()

    while a > 0 and c > 0:
        c -= b
        if c <= 0:
            print('Yes')
            break
        a -= d
        if a <= 0:
            print('No')
            break


if __name__ == "__main__":
    main()

Discussion