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 | 31 |
Tags
- 원서
- 백준
- the midnight library
- 알고리즘
- English
- PyQt
- SQL
- BFS
- sw expert academy
- 원서읽기
- 직무면접
- 알고리즘 문제
- 원서읽자
- 코테 대비
- 완전탐색
- swexpertacademy
- 프로그래머스
- dfs
- D4
- 삼성
- readingbook
- 쉬운 알고리즘 문제
- MySQL
- englishbook
- 코딩테스트
- 코테 준비
- 코테
- STUDYENGLISH
- sw expert
- nightroutine
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