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 |
29 | 30 |
Tags
- string construction
- pcce 기출문제 풀이
- 브루트포스
- pccp 기출문제 풀이
- lock based stack
- gas
- LCS
- boj 11657
- dp
- 지게차와 크레인
- DirectX
- lock based queue
- the maximum subarray
- 프로그래밍공부
- PCCE
- find the running median
- two characters
- the longest increasing subsequence
- special string again
- making anagrams
- lock free stack
- find the town judge
- count triplets
- boj 1717
- ice cream parlor
- DirectX12
- boj 1074
- boj 6443
- 2025 프로그래머스 코딩챌린지 1차예선
- c++
Archives
- Today
- Total
목록14503번 (1)
오구의코딩모험

문제 3줄 요약 1. 로봇 청소기가 청소를 한다. 2. 위의 3 가지 패턴을 반복하며 작동한다. 3. 로봇 청소기가 멈출 때까지 청소한 칸의 개수를 출력하라 내용이 길지만, 기능을 차근차근 하나씩 구현해보자! from sys import stdin ## 1번 기능 : 해당 칸 청소 def func_1(input_list,room): x = input_list[0] y = input_list[1] if room[x][y] == 0: room[x][y] = 2 return 1 return 0 ## 2번 기능 : 상하좌우가 청소된 경우 def func_2(input_list,room): x = input_list[0] y = input_list[1] direction = input_list[2] ## Righ..
프로그래밍 공부/백준 알고리즘
2023. 2. 16. 00:35