Submission
Status:
-PPPPPPPPPPPPPPPPPPP
Subtask/Task Score:
95/100
Score: 95
User: Newton4566
Problemset: ISBN
Language: cpp
Time: 0.004 second
Submitted On: 2026-09-25 15:26:51
#include <bits/stdc++.h>
using namespace std;
int main() {
int n[9];
for (int i = 0; i < 9; i++) {
cin >> n[i];
}
int sum =
10 * n[0] +
9 * n[1] +
8 * n[2] +
7 * n[3] +
6 * n[4] +
5 * n[5] +
4 * n[6] +
3 * n[7] +
2 * n[8];
int last = 11 - (sum % 11);
cout << last << endl;
return 0;
}