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