Submission

Status:

-PPPPPPPPPPPPPPPPPPP

Subtask/Task Score:

95/100

Score: 95

User: Bestzu

Problemset: ISBN

Language: cpp

Time: 0.003 second

Submitted On: 2025-10-14 23:05:09

#include <bits/stdc++.h>
#define endl '\n'
using namespace std;

int main() {
    ios::sync_with_stdio(false); cin.tie(nullptr);

    int n = 10;
    int sum = 0;
    for(int i = 0; i < 9; i++) {
    	int x; cin >> x;
    	sum += n*x;
    	n--;
	}
    cout << (sum+11)/11*11 - sum;
    return 0;
}