⌨️

[AtCoder]ABC-206|B - Savings

2023/04/19に公開

設問ページ

提出結果

def getInt():
    return int(input())


def main():
    n = getInt()

    s = 1
    c = 1
    while s < n:
        c += 1
        s += c
    print(c)


if __name__ == "__main__":
    main()

Discussion