只是一个引导
练习赛 Round 156 题解
牛客周赛 Round 158 题解
小白月赛 Round 136 题解
牛客周赛 Round 156 题解
牛客周赛 Round 155 题解
牛客周赛 Round 154 题解
AtCoder Beginner Contest 468 题解
牛客周赛 Round 153 题解
牛客周赛 Round 152 题解
A 运动会 知识点:字符串、计数 题面保证支柱总是成组出现并组成合法栏架,而一个栏架恰好需要两个支柱 $\texttt{|}$,所以只需要统计字符串中 $\texttt{|}$ 的数量,答案就是其一半。 时间复杂度 $\mathcal{O}(n)$。 void solve() { int n; string s; cin >> n &g…