Submission

Status:

PPPPPPPPPPPPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: mocngaijakraila

Problemset: ISBN

Language: cpp

Time: 0.002 second

Submitted On: 2026-03-07 12:58:30

#include<bits/stdc++.h>
using namespace std;
int arr[10], s = 0;

int main() {
    for(int i = 1; i <= 9; i++) {
        cin >> arr[i];
        s += arr[i] * (10 - i + 1);
    }
    if(11 - (s % 11)==11) cout<<0;
    else cout << 11 - (s % 11);
    
    return 0;
}