#include<bits/stdc++.h>
using namespace std;
int main()
{
map<int, string>mp;
mp[1] = "2 of Clubs";
mp[2] = "3 of Clubs";
mp[3] = "4 of Clubs";
mp[4] = "5 of Clubs";
mp[5] = "6 of Clubs";
mp[6] = "7 of Clubs";
mp[7] = "8 of Clubs";
mp[8] = "9 of Clubs";
mp[9] = "10 of Clubs";
mp[10] = "Jack of Clubs";
mp[11] = "Queen of Clubs";
mp[12] = "King of Clubs";
mp[13] = "Ace of Clubs";
mp[14] = "2 of Diamonds";
mp[15] = "3 of Diamonds";
mp[16] = "4 of Diamonds";
mp[17] = "5 of Diamonds";
mp[18] = "6 of Diamonds";
mp[19] = "7 of Diamonds";
mp[20] = "8 of Diamonds";
mp[21] = "9 of Diamonds";
mp[22] = "10 of Diamonds";
mp[23] = "Jack of Diamonds";
mp[24] = "Queen of Diamonds";
mp[25] = "King of Diamonds";
mp[26] = "Ace of Diamonds";
mp[27] = "2 of Hearts";
mp[28] = "3 of Hearts";
mp[29] = "4 of Hearts";
mp[30] = "5 of Hearts";
mp[31] = "6 of Hearts";
mp[32] = "7 of Hearts";
mp[33] = "8 of Hearts";
mp[34] = "9 of Hearts";
mp[35] = "10 of Hearts";
mp[36] = "Jack of Hearts";
mp[37] = "Queen of Hearts";
mp[38] = "King of Hearts";
mp[39] = "Ace of Hearts";
mp[40] = "2 of Spades";
mp[41] = "3 of Spades";
mp[42] = "4 of Spades";
mp[43] = "5 of Spades";
mp[44] = "6 of Spades";
mp[45] = "7 of Spades";
mp[46] = "8 of Spades";
mp[47] = "9 of Spades";
mp[48] = "10 of Spades";
mp[49] = "Jack of Spades";
mp[50] = "Queen of Spades";
mp[51] = "King of Spades";
mp[52] = "Ace of Spades";
int t;
freopen("input.txt", "r", stdin);
cin >> t;
while(t--)
{
int n, m, i, j, k;
cin >> n;
vector<string>v[n];
vector<string>c[n];
for(i=1;i<=52;i++)
{
cin >> m;
c[0].push_back(m);
v[0].push_back(mp[m]);
}
for(i=1;i<n;i++)
{
for(j=1;j<=52;j++)
{
cin >> m;
c[i].push_back(m);
v[i].push_back(v[i-1][m-1]);
}
}
cin >> k >> m;
for(i=0;i<52;i++)
{
int r = c[k-1][i];
cout <<
}
cout << "\n";
}
return 0;
}
using namespace std;
int main()
{
map<int, string>mp;
mp[1] = "2 of Clubs";
mp[2] = "3 of Clubs";
mp[3] = "4 of Clubs";
mp[4] = "5 of Clubs";
mp[5] = "6 of Clubs";
mp[6] = "7 of Clubs";
mp[7] = "8 of Clubs";
mp[8] = "9 of Clubs";
mp[9] = "10 of Clubs";
mp[10] = "Jack of Clubs";
mp[11] = "Queen of Clubs";
mp[12] = "King of Clubs";
mp[13] = "Ace of Clubs";
mp[14] = "2 of Diamonds";
mp[15] = "3 of Diamonds";
mp[16] = "4 of Diamonds";
mp[17] = "5 of Diamonds";
mp[18] = "6 of Diamonds";
mp[19] = "7 of Diamonds";
mp[20] = "8 of Diamonds";
mp[21] = "9 of Diamonds";
mp[22] = "10 of Diamonds";
mp[23] = "Jack of Diamonds";
mp[24] = "Queen of Diamonds";
mp[25] = "King of Diamonds";
mp[26] = "Ace of Diamonds";
mp[27] = "2 of Hearts";
mp[28] = "3 of Hearts";
mp[29] = "4 of Hearts";
mp[30] = "5 of Hearts";
mp[31] = "6 of Hearts";
mp[32] = "7 of Hearts";
mp[33] = "8 of Hearts";
mp[34] = "9 of Hearts";
mp[35] = "10 of Hearts";
mp[36] = "Jack of Hearts";
mp[37] = "Queen of Hearts";
mp[38] = "King of Hearts";
mp[39] = "Ace of Hearts";
mp[40] = "2 of Spades";
mp[41] = "3 of Spades";
mp[42] = "4 of Spades";
mp[43] = "5 of Spades";
mp[44] = "6 of Spades";
mp[45] = "7 of Spades";
mp[46] = "8 of Spades";
mp[47] = "9 of Spades";
mp[48] = "10 of Spades";
mp[49] = "Jack of Spades";
mp[50] = "Queen of Spades";
mp[51] = "King of Spades";
mp[52] = "Ace of Spades";
int t;
freopen("input.txt", "r", stdin);
cin >> t;
while(t--)
{
int n, m, i, j, k;
cin >> n;
vector<string>v[n];
vector<string>c[n];
for(i=1;i<=52;i++)
{
cin >> m;
c[0].push_back(m);
v[0].push_back(mp[m]);
}
for(i=1;i<n;i++)
{
for(j=1;j<=52;j++)
{
cin >> m;
c[i].push_back(m);
v[i].push_back(v[i-1][m-1]);
}
}
cin >> k >> m;
for(i=0;i<52;i++)
{
int r = c[k-1][i];
cout <<
}
cout << "\n";
}
return 0;
}
Comments
Post a Comment