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
- sw expert
- 원서읽자
- 원서읽기
- 코테 대비
- 코딩테스트
- 코테 준비
- swexpertacademy
- 프로그래머스
- English
- readingbook
- SQL
- sw expert academy
- nightroutine
- the midnight library
- 코테
- dfs
- D4
- 알고리즘
- 쉬운 알고리즘 문제
- englishbook
- 직무면접
- BFS
- STUDYENGLISH
- 알고리즘 문제
- 삼성
- PyQt
- MySQL
- 완전탐색
- 백준
- 원서
Archives
- Today
- Total
목록2470 (1)
시나브로
2470. 두 용액
#include #include #include using namespace std; int main(void) { freopen("inp.inp", "r", stdin); freopen("out.out", "w", stdout); int n; cin >> n; vector list; vector answer(2); for (int i = 0; i > box; list.push_back(box); } sort(list.begin(), list.end()); int s = 0; int e = n-1; long long min = 2000000001; while (s < e) { long long sum = list[s] + list[e]; if (min..
알고리즘/백준
2021. 10. 31. 01:19