文章
72
粉丝
142
获赞
5
访问
58.5k
#include<iostream>
#include<cstring>
#include<string>
#include<vector>
#include<queue>
#include<stack>
#include<algorithm>
using namespace std;
const int maxn = 10000 + 5;
vector<int> v;
int getnumber(string str,int &index) {
int number = 0;
while (isdigit(str[index])) {
number = 10 * number + str[index] - '0';
index++;
}
return number;
}
int main() {
string str;
while (cin>>str) {
int m = str.size();
int index = 0;
v.clear();
v.push_back(-1);
while(index<m) {
 ...
登录后发布评论
貌似改对了