백준43 2443번: 별 찍기-6 # 별 찍기-6 N = int(input()) N = (2*(N-1))+1 j = 0 for i in range(N, 0, -2): print((" "*j)+("*"*i)) j += 1 2022. 6. 6. 10833번: 사과 # 사과 n = int(input()) c = 0 for i in range(n): a, b = map(int, input().split()) c += (b % a) print(c) 2022. 6. 6. 10984번: 내 학점을 구해줘 #내 학점을 구해줘 all_n = int(input("")) for i in range(all_n): n = int(input("")) all_C = 0 jumsu = 0 for j in range(n): C, G = input("").split() C, G = int(C), float(G) all_C += C jumsu += (C*G) jumsu /= all_C print(all_C, round(jumsu, 1)) 2022. 6. 6. 5565번: 영수증 # 영수증 hap = int(input()) book_moeny = [] for i in range(9): money = int(input()) book_moeny.append(money) for j in book_moeny: hap -= j print(hap) 2022. 6. 6. 이전 1 ··· 7 8 9 10 11 다음