abc_301_f。
我把
inline int upper(char c) {return c=='?'?26:isupper(c);} inline int lower(char c) {return c=='?'?26:islower(c);}
改为
int upper(char c) {return c=='?'?26:isupper(c)?1:0;} int lower(char c) {return c=='?'?26:islower(c)?1:0;}
就对了,为什么捏