muyingmiao @ 2022-08-22 20:14:44
#include<iostream>
using namespace std;
string a;
int n;
int main(){
cin >> a;
n = int((a[0]-48)*1+(a[2]-48)*2+(a[3]-48)*3+(a[4]-48)*4+(a[6]-48)*5+(a[7]-48)*6+(a[8]-48)*7+(a[9]-48)*8+(a[10]-48)*9)%11;
if(n == int(a[12])-48){
cout<<"Right";
}
else{
for(int i = 0;i<12;i++){
cout<<a[i];
}
cout<<n;
}
return 0;
}
by XieCY9336 @ 2022-08-22 20:44:06
如果余数为