Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 백준 16235
- 프로래머스
- Coroutine
- JVM
- re.split
- MySQL
- java 기술면접
- 백준 16719
- 파이썬
- Kotlin
- java
- 백준 16236
- spring security
- springboot
- 백준 19238
- with recursive
- 백준 파이썬
- 프로그래머스
- Spring
- MSA
- 백준 15685
- 백준
- sql 기술면접
- 백준 17779
- spring oauth
- 웹어플리케이션 서버
- 백준 17626
- spring cloud
- JPA
- Spring Boot
Archives
- Today
- Total
목록백준 14719 (1)
시작이 반
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/cEDo7f/btq1V0eXGBn/NBZS3ET8bsIYSK7P20LKfK/img.png)
구현 문제이다. 해당 블록에 대한 2차원 배열을 생성하였다. 배열은 그림에서 90도 회전한 것처럼 만들었다. 1 1 1 0 1 0 0 0 1 1 0 0 1 1 1 0 1 1 1 1 1 0 0 0 1 0 0 0 1 1 0 열을 하나씩 보면서 처음 1이 나왔을때부터 count를 1씩 증가시켰고 다음 1이 나오면 정답에 더해줬다. 만약 처음에 1이 나온시점부터 다음에 1이 나오지 않았다면 0을 더해준다. from collections import deque h, w = map(int, input().split(' ')) blocks = deque(list(map(int, input().split(' ')))) graph = [[0] * h for _ in range(w)] for i in range(w): b..
알고리즘/백준
2021. 4. 6. 18:38