#include<iostream> #include<stdio.h> #define MAX 1000 using namespace std; typedef struct Score { int score; int add; }Score; Score S[MAX]; int main() { int n; while (cin >>n ) { for (int i = 0; i < n; i++) { int sum = 0; cin >> S[i].score; int a = S[i]....