Baekjoon - for
[2739] n = int(input()) for i in range(1,10): print(n, '*', i, '=', n*i) [10950] t = int(input()) for i in range(t): a, b = map(int, input().split()) print(a + b) [8393] n = int(input()) r = 0 for i in range(n+1): r = r + i print(r) [15552] import sys n = int(input()) for i in range(n): a, b = map(int, sys.stdin.readline().split()) print(a + b) [2741] n = int(input()) for i in range(1,n+1): prin..
2021. 5. 30.
[Codeup] Python 기초 100제(4)
[6084] h, b, c, s = map(int, input().split()) bit = h * b * c * s #bit mbyte = float(bit / 8 / 1024 / 1024) #MB print(format(mbyte,".1f"),"MB") [6085] w, h, b = map(int, input().split()) bit = w * h * b mbyte = float(bit/8/1024/1024) print(format(mbyte, ".2f"),"MB") [6086] n = int(input()) cnt = 0 sum = 0 while True: cnt += 1 sum += cnt if sum >= n: break print(sum) [6087] n = int(input()) for i..
2021. 5. 25.