Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- rdbms
- PYTHON
- TIL
- 파이썬
- 자바
- mysql
- mybatis
- spring
- sql
- 링크
- 데이터베이스
- database
- db
- eclipse
- 자바스크립트
- 알고리즘
- 웹프로그래밍
- Git
- 에러
- 이클립스
- flask
- java
- jQuery
- 오라클
- 백준
- Oracle
- 플라스크
- javascript
- 스프링
- BOJ
Archives
- Today
- Total
목록문제풀이/백준(BOJ) (10)
기록과 정리의 공간
[알고리즘] 백준 2798번 : 블랙잭
백준 2798번 : 블랙잭 (문제 링크) 사용 언어 : 파이썬(Python) 문제 유형 : 배열, 완전탐색 난이도 : 하 소스코드 import sys n, m = map(int, sys.stdin.readline().split()) cards = list(map(int, sys.stdin.readline(). split())) sum_cards = 0 for i in range(n-2): for j in range(i+1, n-1): for k in range(j+1, n): temp = cards[i] + cards[j] + cards[k] if temp
문제풀이/백준(BOJ)
2020. 7. 17. 17:45
[알고리즘] 백준 2920번 : 음계
백준 2920번 : 음계 (문제 링크) 사용 언어 : 파이썬(Python) 문제 유형 : 배열, 구현 난이도 : 하 소스코드 import sys code = list(map(int, sys.stdin.readline().split())) # a, d results = [True, True] for i in range(1, len(code)): if code[i] - 1 != code[i-1]: results[0] = False if code[i] + 1 != code[i-1]: results[1] = False if results[0]: print('ascending') elif results[1]: print('descending') else: print('mixed..
문제풀이/백준(BOJ)
2020. 7. 17. 16:20