自我测试是对的,结果只有50分
#include<iostream>
#include<string>
using namespace std;
int main()
{
int x,i,j,k=0,l=1,z=0;
string s,w;
cin>>s;
while(s[k]!='\0'){
if(l==10){
break;
}
if(s[k]!='-'){
z=z+(s[k]-'0')*l;
l++;
}
k++;
}
z=z%11;
if(z==s[k+1]-'0'){
cout<<"Right";
}
else{
s[k+1]=z+'0';
cout<<s;
}
return 0;
}