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