Submission

Status:

-PPPPPPPPPPPPPPPPPPP

Subtask/Task Score:

95/100

Score: 95

User: un8qe

Problemset: ISBN

Language: cpp

Time: 0.007 second

Submitted On: 2025-09-23 11:02:58

#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:0;
    cout << 11-j;
}