#include
using namespace std;
int main() {
cout< char cISBN[18];
cin>>cISBN;
int ISBN[18];
int count = 0;
for(int i=0; i<18; i++) {
if(cISBN[i] >= '0' cISBN[i] <= '9') {
ISBN[count] = cISBN[i] - '0';
count++;
} else if(cISBN[i] == 'X') {
ISBN[count] = 10;
} else {
continue;
}
}
int sum = 0;
count = 0;
for(int i=10; i>=2; i--) {
sum += (ISBN[count] * i);
count++;
}
sum += ISBN[9];
cout<
if(sum % 11) {
cout< } else {
cout< }
}运行结果: