Submission

Status:

-PPPPPPPPPPPPPPPPPPP

Subtask/Task Score:

95/100

Score: 95

User: angpangSK

Problemset: ISBN

Language: cpp

Time: 0.003 second

Submitted On: 2025-09-24 19:42:02

#include <iostream>
using namespace std;

int main() {
  int n1,n2,n3,n4,n5,n6,n7,n8,n9,n10;
  cin >> n1 >> n2 >> n3 >> n4 >> n5 >> n6 >> n7 >> n8 >> n9;
  int sum = 10*n1 + 9*n2 + 8*n3 + 7*n4 + 6*n5 + 5*n6 + 4*n7 + 3*n8 + 2*n9;
  int r = sum % 11;
  n10 = 11 - r;
  cout << n10;
  return 0;
}