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
- vector
- 문제풀이
- Computer science
- bfs
- DP
- 코테
- 컴공
- 그래프
- 알고리즘
- 개발
- c++
- 너비우선탐색
- 스택
- 북리뷰
- cs
- Stack
- 컴퓨터공학과
- 정석
- 브루트포스
- 오에스
- 구현
- 백준
- 정석학술정보관
- 오퍼레이팅시스템
- coding
- Operating System
- 자료구조
- 코딩
- OS
- 컴공과
Archives
- Today
- Total
목록투포인터 (1)
Little Jay
[C++] 백준 2018번 - 수들의 합 5
1, 2가 입력되었을때를 생각안했다가 틀렸던 문제 base case에 대해서도 항상 생각하자 #include #define endl '\n' using namespace std; int n; int main() { ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); cin >> n; int left = 1; int right = 2; int total = 1; int ans = 0; if (n == 1 || n == 2) { cout
알고리즘/BOJ
2022. 5. 23. 18:46