pongo_who挑战赛

请叫我李恺 5 0 CPP 2021-04-17 20:04:45

int who(char * word){ int ire=0; // 递归层次, 即'*'的个数, +1. 甲赢,即(r+ire)%2=1, 其中r为who的返回值, ire为who中删除字符'*'标记个数. char*p=word; while(*p){ if(*p=='*')ire++; p++;} int ic=strlen(word)-ire; if(ic

用户评论
请输入评论内容
评分:
暂无评论