提供三组测试数据吧:
5 3
fff
f0f
fff
f0f
fff
5 5
0fff0
0f0f0
fffff
00f00
00f00
5 5
0f0f0
0f0f0
fffff
00f00
00f00
0 0
AC输出是:
Case 1: K
Case 2: A
Case 3: W
做题的时候,发现使用ios::sync_with_stdio(false);就会WA,注释掉就AC,不知道是什么情况,正在研究中。
#include <bits/stdc++.h>
using namespace std;
const string dict[16] = {
"0000", "0001", "0010", "0011",
"0100", "0101