题目:http://poj.org/problem?id=3080
水题,暴搜
1 #include <iostream> 2 #include<cstdio> 3 #include<cstring> 4 #include<cstdlib> 5 #include<stack> 6 #include<queue> 7 #include<iomanip> 8 #include<cmath> 9 #include<map> 10 #include<vector> 11 #include<algorithm> 12 using namespace std; 13 int main() 14 { 15 int t,i,j,k,n,f,cnt; 16 char s[100][100],a[100],b[100]; 17 cin>>t; 18 while(t--) 19 { 20 f=0; memset(b,0,sizeof(b)); b[1]='