⌨️
[AtCoder]ABC-206|B - Savings
設問ページ
提出結果
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()
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