文章
19
粉丝
0
获赞
4
访问
11.4k
#include<bits/stdc++.h>
//#include<string.h>
using namespace std;
int main() {
char str[13];
for (int i = 0; i < 13; i++) {
cin >> str[i];
}
int a = 1;
int sum = 0;
for (int i = 0; i < 12; i++) {
if (str[i] != '-') {
sum += (str[i] - '0') * a++;
//cout << sum << endl;
}
}
if (sum % 11 == (str[12] - '0')||(sum % 11 == 10&& str[12]=='X')) {
cout << "Right" << endl;
}
else {
for (int...
登录后发布评论
暂无评论,来抢沙发