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
- 데이터 바인딩
- C++
- dfs
- XAML
- CollectionView
- Custom Cell
- Cell Animation
- WPF
- Grid
- MVVM
- CustomCollectionViewCell
- listview
- 생활코딩
- 객체
- command
- 그래프
- 백준
- BOJ
- FEED
- DP
- 코딩야학
- Add TapGesture
- 타일링
- BFS
- Fakebook
- 스택
- 백준온라인
- 문자열
- UIView Animation
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함