[백준(BOJ) - Python] 1789번 <수들의 합> 📄문제 🔍나의 코드 S = int(input()) temp = 1 count = 0 while True: S -= temp if S >= 0: temp += 1 count += 1 else: print(count) break 문제 출처 : https://www.acmicpc.net/problem/1789 백준 알고리즘 2022.03.31