Submission

Status:

PPPPPPPPPPPPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: un8qe_x3

Problemset: ISBN

Language: cpp

Time: 0.003 second

Submitted On: 2025-10-18 14:47:23

#include<bits/stdc++.h>
using namespace std;
#define For(len) for(int i=0; i<len; i++)
int main(){
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    int a,b,c,d,e,f,g,h,i,j;
    cin >> a >> b >> c >> d >> e >> f >> g >> h >> i;
    j = 10*a + 9*b + 8*c + 7*d + 6*e + 5*f + 4*g + 3*h + 2*i;
    j = (j%11) ? j%11:11;
    cout << 11-j;
}