int ischinese(string a) { unsigned char b; for(int i=0;i<a.size()/2;i++) for(int j=0;j<(i+1)*2;j++) { b=a[j]; if(b>=0xa1&&b<=0xfe) continue; else return 0; } return 1; }