没什么好说的,很麻烦的模拟而已
//#pragma comment(linker, "/STACK:102400000,102400000")
#include<cstdio>
#include<cstring>
#include<vector>
#include<queue>
#include<cmath>
#include<cctype>
#include<string>
#include<algorithm>
#include<iostream>
#include<ctime>
#include<map>
#include<set>
using namespace std;
#define MP(x,y) make_pair((x),(y))
#define PB(x) push_back(x)
//typedef __int64 LL;
//typedef unsigned __int64 ULL;
/* ****************** */
const int INF=100011122;
const double INFF=1e100;
const double eps=1e-8;
const int mod=1000000007;
const int NN=210;
const int MM=5000010;
/* ****************** */
char zi[26][7][17]={
//a
{
{"111111MMM1111111"},
{"11111MM1MM111111"},
{"1111MM111MM11111"},
{"111MMMMMMMMM1111"},
{"11MM1111111MM111"},
{"1MMM11111111MM11"},
{"1MM1111111111MM1"}
},
//b
{
{"1MMMMMMMMMMM1111"},
{"1MM11111111MM111"},
{"1MM11111111MM111"},
{"1MMMMMMMMMMM1111"},
{"1MM11111111MM111"},
{"1MM11111111MM111"},
{"1MMMMMMMMMMM1111"}
},
//c
{
{"11111MMMMMMMM111"},
{"111MM1111111MM11"},
{"11MM111111111MM1"},
{"11MM111111111111"},
{"11MM111111111MM1"},
{"111MM1111111MM11"},
{"11111MMMMMMMM111"}
},
//d
{
{"1MMMMMMMMMMM1111"},
{"1MM111111111MM11"},
{"1MM1111111111MM1"},
{"1MM1111111111MM1"},
{"1MM1111111111MM1"},
{"1MM111111111MM11"},
{"1MMMMMMMMMMM1111"}
},
//e
{
{"1MMMMMMMMMMMM111"},
{"1MM1111111111111"},
{"1MM1111111111111"},
{