Submission

Status:

PPPPPPPPPPPPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: rice_ot

Problemset: ISBN

Language: cpp

Time: 0.002 second

Submitted On: 2025-10-14 13:45:33

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

int main(){
    int total = 0;
    for(int i = 10; i>1; i--){
        int n; cin>>n;
        total+=i*n;
    }
    if(11-(total%11) != 11){
        cout<<11-(total%11);
    }
    else cout<<0;
}