[Python] - Coding Test / 6079 문제 ✍ CodeUp 문제 / 출처 : Codeup 👉 Input → 55 👉 Output → 10 👉 Source Code n = int(input()) sum = 0; for i in range(1, 1001): sum += i if sum >= n: break print(i) 알고리즘 예제/Python 2022.03.06
[Python] - Coding Test / 6071 문제 ✍ CodeUp 문제 / 출처 : Codeup 👉 Input → 7 4 2 3 0 1 5 6 9 10 8 👉 Output → 7 4 2 3 👉 Source Code n = int(input()) while n != 0: print(n) n = int(input()) 알고리즘 예제/Python 2022.03.06
[Python] - Coding Test / 6062 문제 ✍ CodeUp 문제 / 출처 : Codeup 👉 Input → 3 5 👉 Output → 6 👉 Source Code a, b = map(int, input().split()) print(a ^ b) 알고리즘 예제/Python 2022.03.06
[Python] - Coding Test / 6054 문제 ✍ CodeUp 문제 / 출처 : Codeup 👉 Input → 1 1 👉 Output → True 👉 Source Code a, b = map(int, input().split()) print(bool(a) and bool(b)) 알고리즘 예제/Python 2022.03.06