Problem1052--数字统计

1052: 数字统计

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Description

Sample Input Copy

1
3 1
001 101

Sample Output Copy

11

HINT

【数据范围】 

对于 20%的数据:1 ≤ M ≤ 16。

对于 40%的数据:1 ≤ M ≤ 32。

对于 100%的数据:1 ≤ M ≤ 200,1 ≤ T ≤ 50。