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
- DFS
- 프로그래머스
- 백준알고리즘
- MySQL
- 주식 용어 정리
- C++
- BFS
- Programmers
- fill함수
- 삼성SW 역량 테스트 기출문제
- 2370 c++
- 에라토스테네스의 체
- 삼성 SW역량 테스트
- 백트레킹
- 브루트포스
- 백준 알고리즘
- 백준
- 삼성 SW 역량 테스트 기출 문제
- 용어 정리
- backtracking
- DP
- 주식 용어
- 15651c++
- 백준 15651
- 위상정렬
- 시장 선거 포스터 c++
- 백준 2370
- 15651
- 주린이
- 백준 1697
Archives
- Today
- Total
목록백준알고리즘 (3)
빠켱이
백준 17413번 단어 뒤집기 2[C++]
#include #include #include using namespace std; string str; stack s; bool check = false; int main(){ getline(cin, str); str += '\n'; for(int i = 0; i < str.size(); i++){ if(str[i] == ''){ check = false; } if(!check && str[i] == ' '){ s.pop(); int tmp = s.size(); for(int j = 0; j < tmp; j++){ printf("%c", s.top()); s.pop(); } printf("%c", ' '); } if(!check && str[i] == '\n'){ s.pop(); int tmp = s..
알고리즘/백준 알고리즘
2020. 12. 23. 16:42
백준 1918번 후위표기식[C++]
#include #include #include using namespace std; stack s; int main(void) { char str[101]; cin >> str; stack s; for (int i = 0; str[i] != '\0'; i++) { char value = str[i]; if (value
알고리즘/백준 알고리즘
2020. 12. 23. 16:40