250x250
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
- D4
- nightroutine
- STUDYENGLISH
- 원서읽기
- the midnight library
- 직무면접
- 삼성
- swexpertacademy
- 알고리즘
- sw expert
- 코테 대비
- English
- 코테
- 완전탐색
- sw expert academy
- SQL
- 쉬운 알고리즘 문제
- BFS
- dfs
- 백준
- 코테 준비
- 코딩테스트
- MySQL
- PyQt
- 프로그래머스
- 원서읽자
- 알고리즘 문제
- englishbook
- readingbook
- 원서
Archives
- Today
- Total
목록초기값유의 (1)
시나브로
14888. 연산자 끼워넣기
전체탐색하면 쉽게 풀리는 문제였지만, 저는 10번정도 틀렸다는.... ㅠㅜ 논리상 문제는 없어보이는데 왜 이렇게 되나 찾아보니 max와 min값의 초기값이 10억과 -10억으로 setting을 해야됩니다. 2퍼 정도에서 계속 틀리다면 꼭!!! max와 min값의 초기값을 수정하시길!!!! #include #include #include #include #include #include #define MAX 100000000000000; using namespace std; vector number_list; long long maxs = -MAX; long long mins = MAX; void dfs(vector operate, int point, long long sum) { if (point == n..
알고리즘/백준
2020. 8. 27. 16:15