Submission

Status:

PPPPPPPPPPPPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: Newton4566

Problemset: ISBN

Language: cpp

Time: 0.004 second

Submitted On: 2026-09-25 15:40:46

#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) % 11;
    cout << last << endl;

    return 0;
}