201312-2 ISBN号码 思路 按题目要求模拟就是了,注意识别码’X’的判断。 AC代码如下 #include<cstdio> int main(){ char str[15]; scanf("%s"