본문 바로가기

전체 글

(89)
(파이썬) 백준 알고리즘 9498번 문제 풀이 (Python)123456789101112score = int(input()) if score >= 90 and score = 80 and score = 70 and score = 60 and score
(파이썬) 백준 알고리즘 11721번 문제풀이 (Python)1234a = input() for i in range(0,len(a),10): print(a[i:i+10])cs 문제 출처https://www.acmicpc.net/problem/11721
(파이썬) 백준 알고리즘 11720번 문제풀이 (Python)12345678n = int(input())a = input() sum = 0for i in range(n): sum += int(a[i]) print(sum)cs 문제 출처https://www.acmicpc.net/problem/11720
(파이썬) 백준 알고리즘 8393번 문제풀이 (Python) 1234567n = int(input()) sum = 0for i in range(n): sum+= (i+1) print(sum)cs 문제 출처https://www.acmicpc.net/problem/8393
(파이썬) 백준 알고리즘 1924번 문제 풀이 (Python)123456789101112131415161718192021222324252627282930313233343536x, y = map(int, input().split()) a = [1, 3, 5, 7, 8, 10 ,12]b = [4, 6, 9, 11]c = 2 sumD = 0for i in range(x): #a에 i월이 있으면 31을 더한다. if i in a: sumD += 31 #b에 i월이 있으면 30을 더한다. elif i in b: sumD += 30 #c가 2월이면 28을 더한다. elif i == c: sumD += 28 #나머지 y일을 더한다.sumD += y if sumD % 7 == 0: print('SUN')elif sumD % 7 == 1: print('M..
(파이썬) 백준 알고리즘 2441번 문제풀이 (Python) 1234n = int(input()) for i in range(n, 0, -1): print(" "*(n-i) + "*"*i)cs문제 출처https://www.acmicpc.net/problem/2441
(파이썬) 백준 알고리즘 2440번 문제 풀이 (Python)1234n = int(input()) for i in range(n,0,-1): print('*'*i)cs 문제 출처https://www.acmicpc.net/problem/2440
(파이썬) 백준 알고리즘 2439번 문제풀이 (Python)1234n = int(input()) for b in range(1, n+1): print(' '*(n-b) + '*'*b)cs 문제 출처https://www.acmicpc.net/problem/2439