백준16 조건문 연습 - 14691 ## 14691 사분면 고르기x = int(input())y = int(input())if x>0 and y>0 : print('1')elif x0: print('2')elif x 2024. 6. 20. 22:11 반복문 연습 - 2444 ## 2444 별찍기 - 7n = int(input())for i in range(1, 2*n): if i 백준에서 왜 틀렸다고 나오는지 모르겠다 2024. 6. 17. 23:22 반복문 연습 - 2439 ## 2438 별찍기n = int(input())for i in range(1, n+1): print('*' * i) 2024. 6. 11. 21:29 반복문 연습 - 25304 ## 25304 영수증x = int(input()) ## 총금액n = int(input()) ## 물건 종류tot = list()for i in range (1, n+1): a, b = input().split() a = int(a) b = int(b) tot_i = a*b tot.append(tot_i)if x == sum(tot): print('Yes')else: print('No') 2024. 6. 11. 21:12 반복문 연습 - 8393 ## 8393 합n = int(input())sum = 0for i in range(1, n+1): sum = i + sum i = i + 1print(sum) 2024. 6. 10. 21:01 반복문 연습 - 10950 ## 10950 A+B-3cnt = int(input())A = list()B = list()for i in range(0, cnt): A_i, B_i = input().split() A_i = int(A_i) B_i = int(B_i) A.append(A_i) B.append(B_i)for j in range(0, cnt): print(A[j] + B[j]) 2024. 6. 10. 19:53 반복문 연습 - 2739 ## 2739 구구단dan = int(input())for i in range(1, 10): print(dan, '*', i, '=', dan*i) 2024. 6. 10. 19:52 이전 1 2 다음