func_code_string: #include <bits/stdc++.h>   using namespace std;   template <typename T>   void read(T& x) {     x = 0;     char c;     int sign = 1;     do {       c = getchar();       if (c ==  - ) sign = -1;     } while (c <  0  || c >  9 );     do {       x = x * 10 + c -  0 ;       c = getchar();     } while (c <=  9  && c >=  0 );     x *= sign;   }   const int N = 101, inf = 1e6;   int t, n, cnt, a[N], k[N];   bool vis[inf << 1];   bool check(int x) {     for (register int i = 1; i <= n; ++i)       if (vis[a[i] + x]) return 0;     for (register int i = 1; i <= n; ++i) vis[a[i] + x] = 1;     return 1;   }   inline int solve() {     cnt = 0;     memset(vis, 0, sizeof vis);     read(n);     for (register int i = 1; i <= n; ++i) read(a[i]);     sort(a + 1, a + n + 1);     for (register int i = 2; i <= n; ++i)       if (a[i] == a[i - 1]) return puts( NO ), 0;     for (register int i = 1; i <= inf; ++i)       if (cnt == n)         break;       else if (check(i))         k[++cnt] = i;     if (cnt == n) {       puts( YES );       for (register int i = 1; i <= n; ++i) printf( %d  , k[i]);       printf(  n );     } else       puts( NO );     return 0;   }   int main() {     read(t);     while (t--) solve();     return 0;   }   