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