#include <bits/stdc++.h>
using namespace std;
int arr[1000100], a[101];
void init() { memset(arr, 0, sizeof arr); }
int main() {
  int tst, n;
  scanf("%d", &tst);
  while (tst--) {
    init();
    scanf("%d", &n);
    for (int i = 0; i < n; ++i) scanf("%d", &a[i]);
    int k = 0;
    puts("YES");
    for (int i = 1; i <= 1000000 && k < n; ++i) {
      if (arr[i] != 1) {
        printf("%d ", i), ++k;
        for (int j = 0; j < n; ++j)
          for (int jj = j + 1; jj < n; ++jj) {
            int bd = min(i + abs(a[j] - a[jj]), 1000001);
            arr[bd] = 1;
          }
      }
    }
    puts("");
  }
  return 0;
}
