有趣的题
文章平均质量分 83
言念君君子
这个作者很懒,什么都没留下…
展开
-
Regular Bracket Sequence(替换?组成完整括号问题)
看了一下百度上还没有这题的题解,那我来发一个吧,仅以镜鉴,或者纪念。题目如下:A bracket sequence is called regular if it is possible to obtain correct arithmetic expression by inserting characters + and 1 into this sequence. For example, sequences (())(), () and (()(())) are regular, while )原创 2021-01-28 19:42:59 · 656 阅读 · 0 评论 -
CodeForces-1370A.Maximum GCD
原题如下:A.Maximum GCDtime limit per test: 1 secondmemory limit per test: 256 megabytesinput: standard inputoutput: standard outputLet’s consider all integers in the range from 1 to n (inclusive).Among all pairs of distinct integers in this range, find原创 2021-01-22 23:08:30 · 288 阅读 · 2 评论