http://acm.sdut.edu.cn/sdutoj/problem.php?action=showproblem&problemid=1916
#include<stdio.h>
#include<string.h>
#include<iostream>
using namespace std;
int main()
{
char str[1100],ch;
int t,k,i;
cin>>t;
while(t--)
{
cin>>str;
for(i=0;i<strlen(str);i++)
{
if(str[i]!='-') cout<<str[i];//out put as disired...
else//str[i]=='-'
{
if((str[i-1]>='0'&&str[i-1]<='9')&&(str[i+1]>='0'&&str[i+1]<='9')&&(str[i-1]<=str[i+1]))//digit,left one and right one is also digit and left<right...
{
ch=str[i-1]+1;//ascii+1 from left one to the right one
while(ch<str[i+1])
{