BOJ)2504 괄호의 값 (다시보기)
문제 : https://www.acmicpc.net/problem/2504 #include #include using namespace std; int main() { char input[33]; char check[33] = { NULL }; int value[33] = { 0 }; cin >> input; for (int i = 0, j=0; i < strlen(input); i++) { if (input[i] == '(') { check[j++] = ')'; //cehck[j]에 ) 넣은 후 j+1 } else if (input[i] == '[') { check[j++] = ']'; //cehck[j]에 ) 넣은 후 j+1 } if (input[i] == ')') { j--; if (j < 0 ||..
알고리즘/(깨짐)
2017. 3. 11. 14:53
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- Fakebook
- 데이터 바인딩
- CustomCollectionViewCell
- Custom Cell
- 백준온라인
- 백준
- dfs
- BOJ
- listview
- FEED
- 그래프
- UIView Animation
- 스택
- 생활코딩
- Add TapGesture
- 문자열
- CollectionView
- WPF
- 타일링
- BFS
- command
- XAML
- Cell Animation
- DP
- C++
- Grid
- MVVM
- 객체
- 코딩야학
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함