⌨️

[AtCoder]ABC-139|B - Power Socket

2023/02/21に公開

設問ページ

提出結果

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


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

    c = 1
    i = 0
    while c < b:
        c += a - 1
        i += 1
    print(i)


if __name__ == "__main__":
    main()

Discussion