Submission
Status:
PPPPPPPPPPPPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: solomon
Problemset: ISBN
Language: cpp
Time: 0.005 second
Submitted On: 2026-11-23 09:00:57
#include <bits/stdc++.h>
using namespace std;
int main(){
int isbn = 0,n;
for(int i = 10;i>1;i--){
cin >> n;
isbn += n*i;
}
if(isbn%11 != 0){
cout << (11 - (isbn % 11));
}else{
cout << 0;
}
}