#include <bits/stdc++.h>
using namespace std;
unordered_map<string, int> parseFormulaEx(string::iterator s, string::iterator e) {
unordered_map<string, int> cnt;
// 计算系数
int coef = 0;
while (isdigit(*s)) {
coef = coef * 10 + *s - '0';
++s;
}
coef = max(coef, 1);
while (s != e) {
unordered_map<string, int> temp;
if (*s == '(') {
// 找到匹配的')'
auto p = s + 1;
int cnt = 1;
while (cnt != 0) {
if</
CCF CSP 竞赛试题——化学方程式(201912-3)
最新推荐文章于 2024-05-10 20:17:15 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)