描述
题解
仔细读题,运行代码出奇迹~~~这种题不该出现在 51Nod 题库的,尤其不该出现在基础题里。
代码
#include <iostream>
using namespace std;
int main(int argc, const char * argv[])
{
int T;
cin >> T;
int x, y;
while (T--)
{
cin >> x >> y;
switch (x)
{
case 1:
switch (y)
{
case 1:
printf("Win\n6\n");
break;
case 2:
printf("Win\n4\n");
break;
case 3:
printf("Win\n4\n");
break;
case 4:
printf("Win\n6\n");
break;
}
break;
case 2:
switch (y)
{
case 1:
printf("Equal\n0\n");
break;
case 2:
printf("Win\n4\n");
break;
case 3:
printf("Win\n4\n");
break;
case 4:
printf("Equal\n0\n");
break;
}
break;
case 3:
switch (y)
{
case 1:
printf("Win\n6\n");
break;
case 2:
printf("Win\n4\n");
break;
case 3:
printf("Win\n4\n");
break;
case 4:
printf("Win\n6\n");
break;
}
break;
}
}
return 0;
}