char str[30][5] = { 0 };
int num[30] = { 0 };
char graph[30] = { 0 };
int n,i,j,max,row;
int flag = 1; int rear = 0;
cin >> n;
for (i = 0; i < n; i++) {
cin >> str[i];
}
for (i = 0; i < n; i++) {
rear = strlen(str[i]) - 1;
if (isalpha(str[i][rear])) {
graph[i] = str[i][rear];
str[i][rear] = '\0';
num[i] = atoi(str[i]);
}
else {
graph[i] = '+'; num[i] = atoi(str[i]);
}
} // 数据 输入格式:6 1a 3 4b 2 -2 1