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 |
Tags
- 백준
- 백트래킹
- 스프링 부트
- 스프링
- VPC
- JPA
- 카프카
- gcp
- Spring
- Spring Boot
- 클라우드 컴퓨팅
- 코드업
- 인천여행
- Docker
- DFS
- 로드밸런서
- springboot
- 자료구조
- 알고리즘
- 클라우드
- 프로그래밍문제
- Elasticsearch
- 월미도
- 쿠버네티스
- Kafka
- Apache Kafka
- 오일러프로젝트
- 스프링부트
- Spring Data JPA
- aws
Archives
- Today
- Total
목록우유 축제 (1)
GW LABS
[Backjoon] 우유 축제
14720번 우유 축제 문제는 그리디 문제로 배열을 조건대로 순회하면서 개수를 세는 문제였다. 오랜만에 그리디 문제를 풀면서 느낀 점은 문제를 파악하는 속도와 센스가 많이 줄었다는 것이었다. 주기적으로 그리디 관련 문제를 풀면서 감각을 살려야한다. 아래는 소스코드다. #include using namespace std; int stores[1000]; int getNextStore(const int& currentStore) { switch (currentStore) { case 0: return 1; case 1: return 2; case 2: return 0; default: return 0; } } int main() { int storeNum; cin >> storeNum; for (int i ..
Algorithm & DataStructure/Problems
2021. 11. 30. 09:25