Submission

Status:

PPPPPPPPPPPPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: Namo

Problemset: ISBN

Language: cpp

Time: 0.004 second

Submitted On: 2026-10-06 22:10:39

#include <bits/stdc++.h>
using namespace std;

int main() {
	int arr[9],a,cnt=0;
	for (int i = 0; i < 9; i++) {
		cin >> arr[i];
	}
	a = ((10*arr[0]) + (9*arr[1]) + (8*arr[2]) + (7*arr[3]) + (6*arr[4]) + (5*arr[5]) + (4*arr[6]) + (3*arr[7]) + (2*arr[8]));
	while (a % 11 != 0) {
		a = a + 1;
		cnt++;
	}
	cout << cnt;
}