本场比赛其他题目题解
A. Regular Bracket Sequences
B. Combinatorics Homework
C. Slay the Dragon
D. The Strongest Build
A. Regular Bracket Sequences
题目描述
A bracket sequence is a string containing only characters “(” and “)”. A regular bracket sequence is a bracket sequence that can be tra
nsformed into a correct arithmetic expression by inserting characters “1” and “+” between the original characters of the sequence. For example, bracket sequences “()()” and “(())” are regular (the resulting expressions are: “(1)+(1)” and “((1+1)+1)”), and “)(”, “(” and “)” are not.
You are given an integer n n n. Your goal is to construct and print exactly n n