#ifndef _CRT_SECURE_NO_WARNINGS
#define _CRT_SECURE_NO_WARNINGS
#endif
#include <stdio.h>
#define CMD_INIT (100)
#define CMD_JOIN (200)
#define CMD_PLAY_ROUND (300)
#define CMD_LEAVE (400)
#define MAXN (10000)
#define MAXM (1500)
#define MAXL (10)
extern void init(int N, char mWordList[][MAXL + 1], char mSubjectList[][MAXL + 1]);
extern void join(int mID, int M, int mCardList[]);
extern int playRound(char mBeginStr[], char mSubject[]);
extern int leave(int mID);
static char mWordList[MAXN][MAXL + 1];
static char mSubjectList[MAXN][MAXL + 1];
static int mCardList[MAXM];
static bool run()
{
int Q, N, M;
char mBeginStr[3];
char mSubject[MAXL + 1];
int mID;
int ret = -1, ans;
scanf("%d", &Q);
bool okay = false;
for (int q = 0; q < Q; ++q)
{
int cmd;
scanf("%d", &cmd);
switch(cmd)
{
case CMD_INIT:
scanf("%d", &N);
for (int i = 0; i < N; ++i)
scanf("%s", mWordList[i]);
for (int i = 0; i < N; ++i)
scanf("%s", mSubjectList[i]);
init(N, mWordList, mSubjectList);
okay = true;
break;
case CMD_JOIN:
scanf("%d %d", &mID, &M);
for (int i = 0; i < M; ++i)
scanf("%d", &mCardList[i]);
join(mID, M, mCardList);
break;
case CMD_PLAY_ROUND:
scanf("%s %s", mBeginStr, mSubject);
ret = playRound(mBeginStr, mSubject);
scanf("%d", &ans);
if (ret != ans)
okay = false;
break;
case CMD_LEAVE:
scanf("%d", &mID);
ret = leave(mID);
scanf("%d", &ans);
if (ret != ans)
okay = false;
break;
default:
okay = false;
break;
}
}
return okay;
}
int main()
{
setbuf(stdout, NULL);
//freopen("sample_input.txt", "r", stdin);
int TC, MARK;
scanf("%d %d", &TC, &MARK);
for (int tc = 1; tc <= TC; ++tc)
{
int score = run() ? MARK : 0;
printf("#%d %d\n", tc, score);
}
return 0;
}
#define MAXL (10)
void init(int N, char mWordList[][MAXL + 1], char mSubjectList[][MAXL + 1])
{
return;
}
void join(int mID, int M, int mCardList[])
{
return;
}
int playRound(char mBeginStr[], char mSubject[])
{
return -1;
}
int leave(int mID)
{
return -1;
}
25 100
24
100 10 banana bath baseball basketball pizza beachball bean bicycle bed piano food product sport sport food sport food product product product
200 1 5 8 5 7 2 9
200 2 5 1 2 5 9 7
200 3 5 10 2 4 2 10
200 4 5 10 4 4 10 7
300 b food 21
300 ba sport 8
200 5 5 3 8 7 9 5
200 6 5 10 5 2 5 4
300 p product 30
400 1 4
400 2 4
400 3 5
300 z sport 0
400 4 9
200 7 8 9 8 3 1 9 2 5 9
200 8 4 5 6 2 7
300 b product 15
300 b sport 16
300 b product 16
400 5 2
400 6 8
400 7 6
400 8 4
12
100 10 snre rq lqnfnq cf sxjajyg fatlxevxty oxqfefao myrqsdpwxu aptn ap teyymz penrzqnwi penrzqnwi penrzqnwi teyymz penrzqnwi penrzqnwi wjx teyymz teyymz
200 1 6 6 9 4 4 5 8
200 2 7 7 7 5 5 8 3 6
300 lq penrzqnwi 3
300 ap teyymz 9
200 3 7 7 5 1 1 2 6 7
300 m wjx 16
300 a teyymz 0
300 rq penrzqnwi 2
400 1 1
400 3 0
400 2 1