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
- the midnight library
- STUDYENGLISH
- 쉬운 알고리즘 문제
- sw expert
- 프로그래머스
- PyQt
- nightroutine
- 완전탐색
- 원서
- 코테 준비
- BFS
- 원서읽자
- readingbook
- 삼성
- MySQL
- 코테 대비
- D4
- 코딩테스트
- 코테
- swexpertacademy
- SQL
- dfs
- 직무면접
- 알고리즘
- 알고리즘 문제
- 원서읽기
- englishbook
- sw expert academy
- 백준
- English
Archives
- Today
- Total
목록D3 (2)
시나브로
[D3] 9229. 한빈이와 Spot Mart
정렬을 한 이후, 최소값(start_point)과 m보다 작은 최댓값(end_point) 2개를 가지고 두개의 합이 m보다 클 경우, end_point를 옮겨서 두 개의 합을 줄이도록 하였다. 두개의 합이 m보다 작을 경우, start_point를 옮겨서 두개의 합을 크게하도록하엿다. #include #include #include using namespace std; int main(void) { freopen("inp.inp", "r", stdin); freopen("out.out", "w", stdout); int tc = 0; cin >> tc; for (int q = 0; q > n >> m; int start_point =..
알고리즘/SW Expert Academy
2020. 3. 10. 18:22