touxi @ 2021-10-15 19:00:03
#include<bits/stdc++.h>
using namespace std;
int main()
{
int s=0;
string st;
cin>>st;
s+=(st[0]-'0');
s+=(st[2]-'0')*2;
s+=(st[3]-'0')*3;
s+=(st[4]-'0')*4;
s+=(st[6]-'0')*5;
s+=(st[7]-'0')*6;
s+=(st[8]-'0')*7;
s+=(st[9]-'0')*8;
s+=(st[10]-'0')*9;
s%=11;
if (s==10&&st[12]=='X')
cout<<"Right";
else if (s==(st[12]-'0')) cout<<"Right";
else
{
for (int i=0;i<=11;++i)cout<<st[i];
if(s==10) cout<<'X';
else
cout<<s;
}
return 0;
}
by shight @ 2021-10-15 19:01:03
现在luogu评测机好像出问题了,会随机CERE