#include <iostream>
#include <iomanip>
#include <cstdlib>
#include <string>
using namespace std;
int main(){
    string s;
    cin>>s;
    //0-970-82162-4
    int m = ((int)s[0] -48) * 1;
    
    m += ((int)s[2] - 48) * 2;
    m += ((int)s[3] -48) * 3;
    m += ((int)s[4] -48) * 4;
    
    m += ((int)s[6] -48) * 5;
    m += ((int)s[7] -48) * 6;
    m += ((int)s[8] -48) * 7;
    m += ((int)s[9] -48) * 8;
    m += ((int)s[10] -48) * 9;
    
    int n = m % 11; 
    int t = (int)s[12] -48;
    if(s[12] == 'X')
        t = 10;
    if(n == t)
        cout<<"Right";
    else
    {
        if(n != 10)
            s[12] = n + 48;
        else
            s[12] = 'X';
        cout<<s;
    }
    
//    cout<<setiosflags(ios::fixed)<<setprecision(4)<<s<<endl;
//    cout<< setiosflags(ios::fixed)<<setprecision(4) <<c<<endl; 
}

 

相关文章:

  • 2021-11-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-16
  • 2021-09-08
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-08
  • 2021-12-04
  • 2022-12-23
  • 2021-10-03
相关资源
相似解决方案