Pku2931 Procrastination
时间限制:1s 空间限制:64MB
题目描述
输入格式
The first line of the input contains an integer, the number of test cases. A test case includes one line with Test N, where N is the current test case number followed by eight lines, specifying the two partial configurations C1 and C2 in this order. Each configuration is specified by four lines. The first line of the partial configuration contains three numbers: n1, n2, n3 denoting the heights of the three towers of the partial configuration (0 <= n1,="" n2,="" n3="" <="50)." the="" second="" line="" contains="" n1="" letters="" (b="" or="" w)="" separated="" by="" spaces="" describing="" first="" tower.="" third="" n2="" fourth="" a="" letter="" w="" denotes="" white="" cube="" and="" b="" black="" cube.="" each="" tower="" is="" described="" in="" bottom-to-top="" order.="" p="">
输出格式
For each test case, print on a separate line the test case number and Yes if C1 is at least as favorable for white as the partial configuration C2, and No otherwise.
样例输入
2 Test 1 3 3 1 W B B W B W B 3 3 3 B W W B W W W B B Test 2 3 3 2 W B B W B W B B 3 3 3 B W W B W W W B B
样例输出
Test 1: Yes Test 2: No
提示
没有写明提示
题目来源
MIT Programming Contest 2005
=>