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
- acmicpc
- 아시아나
- BOJ
- 이베이트
- 알고리즘
- gallian
- indexed tree
- Ebate USA
- persistent segment tree
- 대한항공
- 백준
- self balancing binary search tree
- Codeforces
- persistent indexed tree
- ccw
- Algebraic Geometry
- Algorithm
- algebra
- finite group
- 이베이트코리아
- 7469
- k번째 수
- subgroup
- 구간쿼리
- round 424
- 마일리지
- Ebate Korea
- 이베이트미국
- round 420
- 대수학
Archives
- Today
- Total
목록D. Anton and School - 2 (1)
[Round#404 Div.2] D. Anton and School - 2
http://codeforces.com/contest/785/problem/D 괄호문자열이 주어지면 문자열에 있는 괄호들을 임의로 선택하여 만들 수 있는 RSBS(regular simple bracket sequences)의 개수를 찾아 그 개수를 1e9+7로 나눈 나머지를 출력하는 문제이다. RSBS란 It is not empty (that is n ≠ 0).The length of the sequence is even.First charactes of the sequence are equal to "(".Last charactes of the sequence are equal to ")". 인데 간단히 말해 앞쪽은 n/2개의 '(' 뒤쪽은 n/2개의 ')'로 이루어진 괄호를 말한다. 즉 (())나 (..
Algorithm/CodeForces
2017. 3. 16. 23:13