文章
17
粉丝
133
获赞
4
访问
93.2k
#include<bits/stdc++.h>
using namespace std;
struct node{
char c;
int order;
};
bool cmp(node a, node b){
if(isdigit(a.c) && isdigit(b.c)){
return a.order < b.order;
}
else if(!isdigit(a.c) && !isdigit(b.c)){
return a.order < b.order;
}
else if(isdigit(a.c) && !isdigit(b.c)){
return false;
}
else return true;
}
int main(){
vector<node> a;
char c;
int i = 0;
while(cin >> c){
node temp;
temp.c = c;
temp.order = i;
 ...
登录后发布评论
暂无评论,来抢沙发