DTOJ 1101:游戏(game)代码

#include<bits/stdc++.h>
using namespace std;
struct bugpoint { int x,y,z; }p[110];
int n,m;bool f[100][100][100];
const char s[3][40][20]={{""},
    {
        " ",
        " ULDLDRU\n"," URDRDLU\n"," UFDFDBU\n"," UBDBDFU\n",
        " DLULURD\n"," DRURULD\n"," DFUFUBD\n"," DBUBUFD\n",
        " LURURDL\n"," LDRDRUL\n"," LFRFRBL\n"," LBRBRFL\n",
        " RULULDR\n"," RDLDLUR\n"," RFLFLBR\n"," RBLBLFR\n",
        " FUBUBDF\n"," FDBDBUF\n"," FLBLBRF\n"," FRBRBLF\n",
        " BUFUFDB\n"," BDFDFUB\n"," BLFLFRB\n"," BRFRFLB\n"
    },
    {
        " ",
        " ULDRDRUL\n"," URDLDLUR\n"," UFDBDBUF\n"," UBDFDFUB\n",
        " DLURURDL\n"," DRULULDR\n"," DFUBUBDF\n"," DBUFUFDB\n",
        " LURDRDLU\n"," LDRURULD\n"," LFRBRBLF\n"," LBRFRFLB\n",
        " RULDLDRU\n"," RDLULURD\n"," RFLBLBRF\n"," RBLFLFRB\n",
        " FUBDBDFU\n"," FDBUBUFD\n"," FLBRBRFL\n"," FRBLBLFR\n",
        " BUFDFDBU\n"," BDFUFUBD\n"," BLFRFRBL\n"," BRFLFLBR\n"
    }
};
map<char,int> mp,add;
inline void init ( void )
{
    mp['U']=mp['D']=3;mp['L']=mp['R']=1;mp['F']=mp['B']=2;
    add['U']=add['L']=add['B']=-1;add['D']=add['R']=add['F']=1;
}
inline bool check1 ( int t )
{
    int pnt[4];memset(pnt,0,sizeof(pnt));
    for ( int i=1;i<=n;i++ )
    {
        char ch=s[n-6][t][i];
        for ( int j=1;j<=i;j++ )
        {
            pnt[mp[ch]]+=add[ch];
            if ( f[pnt[1]+45][pnt[2]+45][pnt[3]+45] ) return false;
        }
    }
    return true;
}
inline void game1_main ( void )
{
    for ( int i=1;i<=24;i++ )
        if ( check1(i) )
            for ( int j=1;j<=n+1;j++ ) putchar(s[n-6][i][j]);
}
const char c[3][2000][20]={{" "},
    {
        " ",
        " ULDLFRBDBUF\n"," ULDLBRFDFUB\n"," ULDFDBULBRF\n"," ULDFLBRDBUF\n",
        " ULDFLBRBDFU\n"," ULDFRFDRUBL\n"," ULDBDFULFRB\n"," ULDBLFRDFUB\n",
        " ULDBLFRFDBU\n"," ULDBRBDRUFL\n"," ULFDRDRFULB\n"," ULFDRDFRUBL\n",
        " ULFDRFDRBUL\n"," ULFDRFRDBLU\n"," ULFDBLDRBUF\n"," ULFRDFDRBLU\n",
        " ULBDRDRBULF\n"," ULBDRDBRUFL\n"," ULBDRBDRFUL\n"," ULBDRBRDFLU\n",
        " ULBDFLDRFUB\n"," ULBRDBDRFLU\n"," URDRFLBDBUF\n"," URDRBLFDFUB\n",
        " URDFDBURBLF\n"," URDFLFDLUBR\n"," URDFRBLDBUF\n"," URDFRBLBDFU\n",
        " URDBDFURFLB\n"," URDBLBDLUFR\n"," URDBRFLDFUB\n"," URDBRFLFDBU\n",
        " URFDLDLFURB\n"," URFDLDFLUBR\n"," URFDLFDLBUR\n"," URFDLFLDBRU\n",
        " URFDBRDLBUF\n"," URFLDFDLBRU\n"," URBDLDLBURF\n"," URBDLDBLUFR\n",
        " URBDLBDLFUR\n"," URBDLBLDFRU\n"," URBDFRDLFUB\n"," URBLDBDLFRU\n",
        " UFDLDRUFRBL\n"," UFDLFRBDRUL\n"," UFDLFRBRDLU\n"," UFDLBLDBURF\n",
        " UFDRDLUFLBR\n"," UFDRFLBDLUR\n"," UFDRFLBLDRU\n"," UFDRBRDBULF\n",
        " UFDFLBRDRUL\n"," UFDFRBLDLUR\n"," UFLDRFDBRUL\n"," UFLDBDLBURF\n",
        " UFLDBDBLUFR\n"," UFLDBLDBRUF\n"," UFLDBLBDRFU\n"," UFLBDLDBRFU\n",
        " UFRDLFDBLUR\n"," UFRDBDRBULF\n"," UFRDBDBRUFL\n"," UFRDBRDBLUF\n",
        " UFRDBRBDLFU\n"," UFRBDRDBLFU\n"," UBDLDRUBRFL\n"," UBDLFLDFURB\n",
        " UBDLBRFDRUL\n"," UBDLBRFRDLU\n"," UBDRDLUBLFR\n"," UBDRFRDFULB\n",
        " UBDRBLFDLUR\n"," UBDRBLFLDRU\n"," UBDBLFRDRUL\n"," UBDBRFLDLUR\n",
        " UBLDRBDFRUL\n"," UBLDFDLFURB\n"," UBLDFDFLUBR\n"," UBLDFLDFRUB\n",
        " UBLDFLFDRBU\n"," UBLFDLDFRBU\n"," UBRDLBDFLUR\n"," UBRDFDRFULB\n",
        " UBRDFDFRUBL\n"," UBRDFRDFLUB\n"," UBRDFRFDLBU\n"," UBRFDRDFLBU\n",
        " DLULFRBUBDF\n"," DLULBRFUFDB\n"," DLUFUBDLBRF\n"," DLUFLBRUBDF\n",
        " DLUFLBRBUFD\n"," DLUFRFURDBL\n"," DLUBUFDLFRB\n"," DLUBLFRUFDB\n",
        " DLUBLFRFUBD\n"," DLUBRBURDFL\n"," DLFURURFDLB\n"," DLFURUFRDBL\n",
        " DLFURFURBDL\n"," DLFURFRUBLD\n"," DLFUBLURBDF\n"," DLFRUFURBLD\n",
        " DLBURURBDLF\n"," DLBURUBRDFL\n"," DLBURBURFDL\n"," DLBURBRUFLD\n",
        " DLBUFLURFDB\n"," DLBRUBURFLD\n"," DRURFLBUBDF\n"," DRURBLFUFDB\n",
        " DRUFUBDRBLF\n"," DRUFLFULDBR\n"," DRUFRBLUBDF\n"," DRUFRBLBUFD\n",
        " DRUBUFDRFLB\n"," DRUBLBULDFR\n"," DRUBRFLUFDB\n"," DRUBRFLFUBD\n",
        " DRFULULFDRB\n"," DRFULUFLDBR\n"," DRFULFULBDR\n"," DRFULFLUBRD\n",
        " DRFUBRULBDF\n"," DRFLUFULBRD\n"," DRBULULBDRF\n"," DRBULUBLDFR\n",
        " DRBULBULFDR\n"," DRBULBLUFRD\n"," DRBUFRULFDB\n"," DRBLUBULFRD\n",
        " DFULURDFRBL\n"," DFULFRBURDL\n"," DFULFRBRULD\n"," DFULBLUBDRF\n",
        " DFURULDFLBR\n"," DFURFLBULDR\n"," DFURFLBLURD\n"," DFURBRUBDLF\n",
        " DFUFLBRURDL\n"," DFUFRBLULDR\n"," DFLURFUBRDL\n"," DFLUBULBDRF\n",
        " DFLUBUBLDFR\n"," DFLUBLUBRDF\n"," DFLUBLBURFD\n"," DFLBULUBRFD\n",
        " DFRULFUBLDR\n"," DFRUBURBDLF\n"," DFRUBUBRDFL\n"," DFRUBRUBLDF\n",
        " DFRUBRBULFD\n"," DFRBURUBLFD\n"," DBULURDBRFL\n"," DBULFLUFDRB\n",
        " DBULBRFURDL\n"," DBULBRFRULD\n"," DBURULDBLFR\n"," DBURFRUFDLB\n",
        " DBURBLFULDR\n"," DBURBLFLURD\n"," DBUBLFRURDL\n"," DBUBRFLULDR\n",
        " DBLURBUFRDL\n"," DBLUFULFDRB\n"," DBLUFUFLDBR\n"," DBLUFLUFRDB\n",
        " DBLUFLFURBD\n"," DBLFULUFRBD\n"," DBRULBUFLDR\n"," DBRUFURFDLB\n",
        " DBRUFUFRDBL\n"," DBRUFRUFLDB\n"," DBRUFRFULBD\n"," DBRFURUFLBD\n",
        " LURUFDBRBLF\n"," LURUBDFRFLB\n"," LURFUBDRBLF\n"," LURFUBDBRFL\n",
        " LURFDFRDLBU\n"," LURFRBLUBDF\n"," LURBUFDRFLB\n"," LURBUFDFRBL\n",
        " LURBDBRDLFU\n"," LURBRFLUFDB\n"," LUFDRFRDBUL\n"," LUFRDRDFLUB\n",
        " LUFRDRFDLBU\n"," LUFRDFDRBUL\n"," LUFRDFRDBLU\n"," LUFRBURDBLF\n",
        " LUBDRBRDFUL\n"," LUBRDRDBLUF\n"," LUBRDRBDLFU\n"," LUBRDBDRFUL\n",
        " LUBRDBRDFLU\n"," LUBRFURDFLB\n"," LDRDFUBRBLF\n"," LDRDBUFRFLB\n",
        " LDRFUFRULBD\n"," LDRFDBURBLF\n"," LDRFDBUBRFL\n"," LDRFRBLDBUF\n",
        " LDRBUBRULFD\n"," LDRBDFURFLB\n"," LDRBDFUFRBL\n"," LDRBRFLDFUB\n",
        " LDFURFRUBDL\n"," LDFRURUFLDB\n"," LDFRURFULBD\n"," LDFRUFURBDL\n",
        " LDFRUFRUBLD\n"," LDFRBDRUBLF\n"," LDBURBRUFDL\n"," LDBRURUBLDF\n",
        " LDBRURBULFD\n"," LDBRUBURFDL\n"," LDBRUBRUFLD\n"," LDBRFDRUFLB\n",
        " LFURDFRBDLU\n"," LFURBURBDLF\n"," LFURBUBRDFL\n"," LFURBRUBLDF\n",
        " LFURBRBULFD\n"," LFUBRURBDFL\n"," LFDRUFRBULD\n"," LFDRBDRBULF\n",
        " LFDRBDBRUFL\n"," LFDRBRDBLUF\n"," LFDRBRBDLFU\n"," LFDBRDRBUFL\n",
        " LFRURDLFDBU\n"," LFRUFDBDRUL\n"," LFRUFDBRDLU\n"," LFRUBURBLDF\n",
        " LFRDRULFUBD\n"," LFRDFUBURDL\n"," LFRDFUBRULD\n"," LFRDBDRBLUF\n",
        " LFRFUBDRDLU\n"," LFRFDBURULD\n"," LBURDBRFDLU\n"," LBURFURFDLB\n",
        " LBURFUFRDBL\n"," LBURFRUFLDB\n"," LBURFRFULBD\n"," LBUFRURFDBL\n",
        " LBDRUBRFULD\n"," LBDRFDRFULB\n"," LBDRFDFRUBL\n"," LBDRFRDFLUB\n",
        " LBDRFRFDLBU\n"," LBDFRDRFUBL\n"," LBRURDLBDFU\n"," LBRUFURFLDB\n",
        " LBRUBDFDRUL\n"," LBRUBDFRDLU\n"," LBRDRULBUFD\n"," LBRDFDRFLUB\n",
        " LBRDBUFURDL\n"," LBRDBUFRULD\n"," LBRBUFDRDLU\n"," LBRBDFURULD\n",
        " RULUFDBLBRF\n"," RULUBDFLFRB\n"," RULFUBDLBRF\n"," RULFUBDBLFR\n",
        " RULFDFLDRBU\n"," RULFLBRUBDF\n"," RULBUFDLFRB\n"," RULBUFDFLBR\n",
        " RULBDBLDRFU\n"," RULBLFRUFDB\n"," RUFDLFLDBUR\n"," RUFLDLDFRUB\n",
        " RUFLDLFDRBU\n"," RUFLDFDLBUR\n"," RUFLDFLDBRU\n"," RUFLBULDBRF\n",
        " RUBDLBLDFUR\n"," RUBLDLDBRUF\n"," RUBLDLBDRFU\n"," RUBLDBDLFUR\n",
        " RUBLDBLDFRU\n"," RUBLFULDFRB\n"," RDLDFUBLBRF\n"," RDLDBUFLFRB\n",
        " RDLFUFLURBD\n"," RDLFDBULBRF\n"," RDLFDBUBLFR\n"," RDLFLBRDBUF\n",
        " RDLBUBLURFD\n"," RDLBDFULFRB\n"," RDLBDFUFLBR\n"," RDLBLFRDFUB\n",
        " RDFULFLUBDR\n"," RDFLULUFRDB\n"," RDFLULFURBD\n"," RDFLUFULBDR\n",
        " RDFLUFLUBRD\n"," RDFLBDLUBRF\n"," RDBULBLUFDR\n"," RDBLULUBRDF\n",
        " RDBLULBURFD\n"," RDBLUBULFDR\n"," RDBLUBLUFRD\n"," RDBLFDLUFRB\n",
        " RFULDFLBDRU\n"," RFULBULBDRF\n"," RFULBUBLDFR\n"," RFULBLUBRDF\n",
        " RFULBLBURFD\n"," RFUBLULBDFR\n"," RFDLUFLBURD\n"," RFDLBDLBURF\n",
        " RFDLBDBLUFR\n"," RFDLBLDBRUF\n"," RFDLBLBDRFU\n"," RFDBLDLBUFR\n",
        " RFLULDRFDBU\n"," RFLUFDBDLUR\n"," RFLUFDBLDRU\n"," RFLUBULBRDF\n",
        " RFLDLURFUBD\n"," RFLDFUBULDR\n"," RFLDFUBLURD\n"," RFLDBDLBRUF\n",
        " RFLFUBDLDRU\n"," RFLFDBULURD\n"," RBULDBLFDRU\n"," RBULFULFDRB\n",
        " RBULFUFLDBR\n"," RBULFLUFRDB\n"," RBULFLFURBD\n"," RBUFLULFDBR\n",
        " RBDLUBLFURD\n"," RBDLFDLFURB\n"," RBDLFDFLUBR\n"," RBDLFLDFRUB\n",
        " RBDLFLFDRBU\n"," RBDFLDLFUBR\n"," RBLULDRBDFU\n"," RBLUFULFRDB\n",
        " RBLUBDFDLUR\n"," RBLUBDFLDRU\n"," RBLDLURBUFD\n"," RBLDFDLFRUB\n",
        " RBLDBUFULDR\n"," RBLDBUFLURD\n"," RBLBUFDLDRU\n"," RBLBDFULURD\n",
        " FULDBLBDRUF\n"," FULBDLDBRUF\n"," FULBDLBDRFU\n"," FULBDBDLFUR\n",
        " FULBDBLDFRU\n"," FULBRUBDRFL\n"," FURDBRBDLUF\n"," FURBDRDBLUF\n",
        " FURBDRBDLFU\n"," FURBDBDRFUL\n"," FURBDBRDFLU\n"," FURBLUBDLFR\n",
        " FUBULDRBRFL\n"," FUBURDLBLFR\n"," FUBLURDRBLF\n"," FUBLURDBRFL\n",
        " FUBLDLBDFRU\n"," FUBLBRFURDL\n"," FUBRULDLBRF\n"," FUBRULDBLFR\n",
        " FUBRDRBDFLU\n"," FUBRBLFULDR\n"," FDLUBLBURDF\n"," FDLBULUBRDF\n",
        " FDLBULBURFD\n"," FDLBUBULFDR\n"," FDLBUBLUFRD\n"," FDLBRDBURFL\n",
        " FDRUBRBULDF\n"," FDRBURUBLDF\n"," FDRBURBULFD\n"," FDRBUBURFDL\n",
        " FDRBUBRUFLD\n"," FDRBLDBULFR\n"," FDBDLURBRFL\n"," FDBDRULBLFR\n",
        " FDBLULBUFRD\n"," FDBLDRURBLF\n"," FDBLDRUBRFL\n"," FDBLBRFDRUL\n",
        " FDBRURBUFLD\n"," FDBRDLULBRF\n"," FDBRDLUBLFR\n"," FDBRBLFDLUR\n",
        " FLURBUBRDLF\n"," FLUBDLBRDFU\n"," FLUBRURBDLF\n"," FLUBRUBRDFL\n",
        " FLUBRBURFDL\n"," FLUBRBRUFLD\n"," FLDRBDBRULF\n"," FLDBULBRUFD\n",
        " FLDBRDRBULF\n"," FLDBRDBRUFL\n"," FLDBRBDRFUL\n"," FLDBRBRDFLU\n",
        " FLBULDRDBUF\n"," FLBULDRBDFU\n"," FLBURUBRFDL\n"," FLBUBDFLDRU\n",
        " FLBDLURUBDF\n"," FLBDLURBUFD\n"," FLBDRDBRFUL\n"," FLBDBUFLURD\n",
        " FLBLURDBDFU\n"," FLBLDRUBUFD\n"," FRULBUBLDRF\n"," FRUBDRBLDFU\n",
        " FRUBLULBDRF\n"," FRUBLUBLDFR\n"," FRUBLBULFDR\n"," FRUBLBLUFRD\n",
        " FRDLBDBLURF\n"," FRDBURBLUFD\n"," FRDBLDLBURF\n"," FRDBLDBLUFR\n",
        " FRDBLBDLFUR\n"," FRDBLBLDFRU\n"," FRBULUBLFDR\n"," FRBURDLDBUF\n",
        " FRBURDLBDFU\n"," FRBUBDFRDLU\n"," FRBDLDBLFUR\n"," FRBDRULUBDF\n",
        " FRBDRULBUFD\n"," FRBDBUFRULD\n"," FRBRULDBDFU\n"," FRBRDLUBUFD\n",
        " BULDFLFDRUB\n"," BULFDLDFRUB\n"," BULFDLFDRBU\n"," BULFDFDLBUR\n",
        " BULFDFLDBRU\n"," BULFRUFDRBL\n"," BURDFRFDLUB\n"," BURFDRDFLUB\n",
        " BURFDRFDLBU\n"," BURFDFDRBUL\n"," BURFDFRDBLU\n"," BURFLUFDLBR\n",
        " BUFULDRFRBL\n"," BUFURDLFLBR\n"," BUFLURDRFLB\n"," BUFLURDFRBL\n",
        " BUFLDLFDBRU\n"," BUFLFRBURDL\n"," BUFRULDLFRB\n"," BUFRULDFLBR\n",
        " BUFRDRFDBLU\n"," BUFRFLBULDR\n"," BDLUFLFURDB\n"," BDLFULUFRDB\n",
        " BDLFULFURBD\n"," BDLFUFULBDR\n"," BDLFUFLUBRD\n"," BDLFRDFURBL\n",
        " BDRUFRFULDB\n"," BDRFURUFLDB\n"," BDRFURFULBD\n"," BDRFUFURBDL\n",
        " BDRFUFRUBLD\n"," BDRFLDFULBR\n"," BDFDLURFRBL\n"," BDFDRULFLBR\n",
        " BDFLULFUBRD\n"," BDFLDRURFLB\n"," BDFLDRUFRBL\n"," BDFLFRBDRUL\n",
        " BDFRURFUBLD\n"," BDFRDLULFRB\n"," BDFRDLUFLBR\n"," BDFRFLBDLUR\n",
        " BLURFUFRDLB\n"," BLUFDLFRDBU\n"," BLUFRURFDLB\n"," BLUFRUFRDBL\n",
        " BLUFRFURBDL\n"," BLUFRFRUBLD\n"," BLDRFDFRULB\n"," BLDFULFRUBD\n",
        " BLDFRDRFULB\n"," BLDFRDFRUBL\n"," BLDFRFDRBUL\n"," BLDFRFRDBLU\n",
        " BLFULDRDFUB\n"," BLFULDRFDBU\n"," BLFURUFRBDL\n"," BLFUFDBLDRU\n",
        " BLFDLURUFDB\n"," BLFDLURFUBD\n"," BLFDRDFRBUL\n"," BLFDFUBLURD\n",
        " BLFLURDFDBU\n"," BLFLDRUFUBD\n"," BRULFUFLDRB\n"," BRUFDRFLDBU\n",
        " BRUFLULFDRB\n"," BRUFLUFLDBR\n"," BRUFLFULBDR\n"," BRUFLFLUBRD\n",
        " BRDLFDFLURB\n"," BRDFURFLUBD\n"," BRDFLDLFURB\n"," BRDFLDFLUBR\n",
        " BRDFLFDLBUR\n"," BRDFLFLDBRU\n"," BRFULUFLBDR\n"," BRFURDLDFUB\n",
        " BRFURDLFDBU\n"," BRFUFDBRDLU\n"," BRFDLDFLBUR\n"," BRFDRULUFDB\n",
        " BRFDRULFUBD\n"," BRFDFUBRULD\n"," BRFRULDFDBU\n"," BRFRDLUFUBD\n"
    },
    {
        " ",
        " ULURFDFDRULB\n"," ULURFDFRDLUB\n"," ULURBDBDRULF\n"," ULURBDBRDLUF\n",
        " ULUFRUBRBDLF\n"," ULUFRDRFDLUB\n"," ULUFRDFDRUBL\n"," ULUFRFDRDBLU\n",
        " ULUFRBUBRFDL\n"," ULUBRUFRFDLB\n"," ULUBRDRBDLUF\n"," ULUBRDBDRUFL\n",
        " ULUBRFUFRBDL\n"," ULUBRBDRDFLU\n"," ULDRDFUBRBLF\n"," ULDRDBUFRFLB\n",
        " ULDRFDBURBLF\n"," ULDRFDBUBRFL\n"," ULDRFRBLDBUF\n"," ULDRBDFURFLB\n",
        " ULDRBDFUFRBL\n"," ULDRBRFLDFUB\n"," ULDFUBLURBDF\n"," ULDFDFUBLFRB\n",
        " ULDFLFRBDFUB\n"," ULDFRBDRUBLF\n"," ULDBUFLURFDB\n"," ULDBDBUFLBRF\n",
        " ULDBLBRFDBUF\n"," ULDBRFDRUFLB\n"," ULFURFDRBDLU\n"," ULFUBLDRDBUF\n",
        " ULFUBLDRBDFU\n"," ULFDRURUFLDB\n"," ULFDRUFURBDL\n"," ULFDRBDRBULF\n",
        " ULFDRBDBRUFL\n"," ULFDRBRDBLUF\n"," ULFDRBRBDLFU\n"," ULFDBULURBDF\n",
        " ULFDBUBUFLDR\n"," ULFDBRDRBUFL\n"," ULFLDFDRBRUL\n"," ULFRDBDRBLUF\n",
        " ULBURBDRFDLU\n"," ULBUFLDRDFUB\n"," ULBUFLDRFDBU\n"," ULBDRURUBLDF\n",
        " ULBDRUBURFDL\n"," ULBDRFDRFULB\n"," ULBDRFDFRUBL\n"," ULBDRFRDFLUB\n",
        " ULBDRFRFDLBU\n"," ULBDFULURFDB\n"," ULBDFUFUBLDR\n"," ULBDFRDRFUBL\n",
        " ULBLDBDRFRUL\n"," ULBRDFDRFLUB\n"," URULFDFDLURB\n"," URULFDFLDRUB\n",
        " URULBDBDLURF\n"," URULBDBLDRUF\n"," URUFLUBLBDRF\n"," URUFLDLFDRUB\n",
        " URUFLDFDLUBR\n"," URUFLFDLDBRU\n"," URUFLBUBLFDR\n"," URUBLUFLFDRB\n",
        " URUBLDLBDRUF\n"," URUBLDBDLUFR\n"," URUBLFUFLBDR\n"," URUBLBDLDFRU\n",
        " URDLDFUBLBRF\n"," URDLDBUFLFRB\n"," URDLFDBULBRF\n"," URDLFDBUBLFR\n",
        " URDLFLBRDBUF\n"," URDLBDFULFRB\n"," URDLBDFUFLBR\n"," URDLBLFRDFUB\n",
        " URDFUBRULBDF\n"," URDFDFUBRFLB\n"," URDFLBDLUBRF\n"," URDFRFLBDFUB\n",
        " URDBUFRULFDB\n"," URDBDBUFRBLF\n"," URDBLFDLUFRB\n"," URDBRBLFDBUF\n",
        " URFULFDLBDRU\n"," URFUBRDLDBUF\n"," URFUBRDLBDFU\n"," URFDLULUFRDB\n",
        " URFDLUFULBDR\n"," URFDLBDLBURF\n"," URFDLBDBLUFR\n"," URFDLBLDBRUF\n",
        " URFDLBLBDRFU\n"," URFDBURULBDF\n"," URFDBUBUFRDL\n"," URFDBLDLBUFR\n",
        " URFLDBDLBRUF\n"," URFRDFDLBLUR\n"," URBULBDLFDRU\n"," URBUFRDLDFUB\n",
        " URBUFRDLFDBU\n"," URBDLULUBRDF\n"," URBDLUBULFDR\n"," URBDLFDLFURB\n",
        " URBDLFDFLUBR\n"," URBDLFLDFRUB\n"," URBDLFLFDRBU\n"," URBDFURULFDB\n",
        " URBDFUFUBRDL\n"," URBDFLDLFUBR\n"," URBLDFDLFRUB\n"," URBRDBDLFLUR\n",
        " UFULBURBRDFL\n"," UFULBDLDBURF\n"," UFULBDBLDFUR\n"," UFULBLDBDRFU\n",
        " UFULBRURBLDF\n"," UFURBULBLDFR\n"," UFURBDRDBULF\n"," UFURBDBRDFUL\n",
        " UFURBLULBRDF\n"," UFURBRDBDLFU\n"," UFUBLDLDBUFR\n"," UFUBLDLBDFUR\n",
        " UFUBRDRDBUFL\n"," UFUBRDRBDFUL\n"," UFDLURFUBRDL\n"," UFDLDLURFLBR\n",
        " UFDLFLBRDLUR\n"," UFDLBRDBURFL\n"," UFDRULFUBLDR\n"," UFDRDRULFRBL\n",
        " UFDRFRBLDRUL\n"," UFDRBLDBULFR\n"," UFDBDLURBRFL\n"," UFDBDRULBLFR\n",
        " UFDBLDRURBLF\n"," UFDBLDRUBRFL\n"," UFDBLBRFDRUL\n"," UFDBRDLULBRF\n",
        " UFDBRDLUBLFR\n"," UFDBRBLFDLUR\n"," UFLURFDBDRUL\n"," UFLURFDBRDLU\n",
        " UFLUBLDBRDFU\n"," UFLDRURULFDB\n"," UFLDRUFUBRDL\n"," UFLDRBDBRULF\n",
        " UFLDBULUBRDF\n"," UFLDBUBULFDR\n"," UFLDBRDRBULF\n"," UFLDBRDBRUFL\n",
        " UFLDBRBDRFUL\n"," UFLDBRBRDFLU\n"," UFLFDLDBRBUF\n"," UFLBDRDBRFUL\n",
        " UFRULFDBDLUR\n"," UFRULFDBLDRU\n"," UFRUBRDBLDFU\n"," UFRDLULURFDB\n",
        " UFRDLUFUBLDR\n"," UFRDLBDBLURF\n"," UFRDBURUBLDF\n"," UFRDBUBURFDL\n",
        " UFRDBLDLBURF\n"," UFRDBLDBLUFR\n"," UFRDBLBDLFUR\n"," UFRDBLBLDFRU\n",
        " UFRFDRDBLBUF\n"," UFRBDLDBLFUR\n"," UBULFURFRDBL\n"," UBULFDLDFURB\n",
        " UBULFDFLDBUR\n"," UBULFLDFDRBU\n"," UBULFRURFLDB\n"," UBURFULFLDBR\n",
        " UBURFDRDFULB\n"," UBURFDFRDBUL\n"," UBURFLULFRDB\n"," UBURFRDFDLBU\n",
        " UBUFLDLDFUBR\n"," UBUFLDLFDBUR\n"," UBUFRDRDFUBL\n"," UBUFRDRFDBUL\n",
        " UBDLURBUFRDL\n"," UBDLDLURBLFR\n"," UBDLFRDFURBL\n"," UBDLBLFRDLUR\n",
        " UBDRULBUFLDR\n"," UBDRDRULBRFL\n"," UBDRFLDFULBR\n"," UBDRBRFLDRUL\n",
        " UBDFDLURFRBL\n"," UBDFDRULFLBR\n"," UBDFLDRURFLB\n"," UBDFLDRUFRBL\n",
        " UBDFLFRBDRUL\n"," UBDFRDLULFRB\n"," UBDFRDLUFLBR\n"," UBDFRFLBDLUR\n",
        " UBLURBDFDRUL\n"," UBLURBDFRDLU\n"," UBLUFLDFRDBU\n"," UBLDRURULBDF\n",
        " UBLDRUBUFRDL\n"," UBLDRFDFRULB\n"," UBLDFULUFRDB\n"," UBLDFUFULBDR\n",
        " UBLDFRDRFULB\n"," UBLDFRDFRUBL\n"," UBLDFRFDRBUL\n"," UBLDFRFRDBLU\n",
        " UBLFDRDFRBUL\n"," UBLBDLDFRFUB\n"," UBRULBDFDLUR\n"," UBRULBDFLDRU\n",
        " UBRUFRDFLDBU\n"," UBRDLULURBDF\n"," UBRDLUBUFLDR\n"," UBRDLFDFLURB\n",
        " UBRDFURUFLDB\n"," UBRDFUFURBDL\n"," UBRDFLDLFURB\n"," UBRDFLDFLUBR\n",
        " UBRDFLFDLBUR\n"," UBRDFLFLDBRU\n"," UBRFDLDFLBUR\n"," UBRBDRDFLFUB\n",
        " DLURUFDBRBLF\n"," DLURUBDFRFLB\n"," DLURFUBDRBLF\n"," DLURFUBDBRFL\n",
        " DLURFRBLUBDF\n"," DLURBUFDRFLB\n"," DLURBUFDFRBL\n"," DLURBRFLUFDB\n",
        " DLUFUFDBLFRB\n"," DLUFDBLDRBUF\n"," DLUFLFRBUFDB\n"," DLUFRBURDBLF\n",
        " DLUBUBDFLBRF\n"," DLUBDFLDRFUB\n"," DLUBLBRFUBDF\n"," DLUBRFURDFLB\n",
        " DLDRFUFURDLB\n"," DLDRFUFRULDB\n"," DLDRBUBURDLF\n"," DLDRBUBRULDF\n",
        " DLDFRURFULDB\n"," DLDFRUFURDBL\n"," DLDFRDBRBULF\n"," DLDFRFURUBLD\n",
        " DLDFRBDBRFUL\n"," DLDBRURBULDF\n"," DLDBRUBURDFL\n"," DLDBRDFRFULB\n",
        " DLDBRFDFRBUL\n"," DLDBRBURUFLD\n"," DLFURDRDFLUB\n"," DLFURDFDRBUL\n",
        " DLFURBURBDLF\n"," DLFURBUBRDFL\n"," DLFURBRUBLDF\n"," DLFURBRBULFD\n",
        " DLFUBDLDRBUF\n"," DLFUBDBDFLUR\n"," DLFUBRURBDFL\n"," DLFDRFURBULD\n",
        " DLFDBLURUBDF\n"," DLFDBLURBUFD\n"," DLFLUFURBRDL\n"," DLFRUBURBLDF\n",
        " DLBURDRDBLUF\n"," DLBURDBDRFUL\n"," DLBURFURFDLB\n"," DLBURFUFRDBL\n",
        " DLBURFRUFLDB\n"," DLBURFRFULBD\n"," DLBUFDLDRFUB\n"," DLBUFDFDBLUR\n",
        " DLBUFRURFDBL\n"," DLBDRBURFULD\n"," DLBDFLURUFDB\n"," DLBDFLURFUBD\n",
        " DLBLUBURFRDL\n"," DLBRUFURFLDB\n"," DRULUFDBLBRF\n"," DRULUBDFLFRB\n",
        " DRULFUBDLBRF\n"," DRULFUBDBLFR\n"," DRULFLBRUBDF\n"," DRULBUFDLFRB\n",
        " DRULBUFDFLBR\n"," DRULBLFRUFDB\n"," DRUFUFDBRFLB\n"," DRUFDBRDLBUF\n",
        " DRUFLBULDBRF\n"," DRUFRFLBUFDB\n"," DRUBUBDFRBLF\n"," DRUBDFRDLFUB\n",
        " DRUBLFULDFRB\n"," DRUBRBLFUBDF\n"," DRDLFUFULDRB\n"," DRDLFUFLURDB\n",
        " DRDLBUBULDRF\n"," DRDLBUBLURDF\n"," DRDFLULFURDB\n"," DRDFLUFULDBR\n",
        " DRDFLDBLBURF\n"," DRDFLFULUBRD\n"," DRDFLBDBLFUR\n"," DRDBLULBURDF\n",
        " DRDBLUBULDFR\n"," DRDBLDFLFURB\n"," DRDBLFDFLBUR\n"," DRDBLBULUFRD\n",
        " DRFULDLDFRUB\n"," DRFULDFDLBUR\n"," DRFULBULBDRF\n"," DRFULBUBLDFR\n",
        " DRFULBLUBRDF\n"," DRFULBLBURFD\n"," DRFUBDRDLBUF\n"," DRFUBDBDFRUL\n",
        " DRFUBLULBDFR\n"," DRFDLFULBURD\n"," DRFDBRULUBDF\n"," DRFDBRULBUFD\n",
        " DRFLUBULBRDF\n"," DRFRUFULBLDR\n"," DRBULDLDBRUF\n"," DRBULDBDLFUR\n",
        " DRBULFULFDRB\n"," DRBULFUFLDBR\n"," DRBULFLUFRDB\n"," DRBULFLFURBD\n",
        " DRBUFDRDLFUB\n"," DRBUFDFDBRUL\n"," DRBUFLULFDBR\n"," DRBDLBULFURD\n",
        " DRBDFRULUFDB\n"," DRBDFRULFUBD\n"," DRBLUFULFRDB\n"," DRBRUBULFLDR\n",
        " DFULULDRFLBR\n"," DFULDRFDBRUL\n"," DFULFLBRULDR\n"," DFULBRUBDRFL\n",
        " DFURURDLFRBL\n"," DFURDLFDBLUR\n"," DFURFRBLURDL\n"," DFURBLUBDLFR\n",
        " DFUBULDRBRFL\n"," DFUBURDLBLFR\n"," DFUBLURDRBLF\n"," DFUBLURDBRFL\n",
        " DFUBLBRFURDL\n"," DFUBRULDLBRF\n"," DFUBRULDBLFR\n"," DFUBRBLFULDR\n",
        " DFDLBULUBDRF\n"," DFDLBUBLUFDR\n"," DFDLBDRBRUFL\n"," DFDLBLUBURFD\n",
        " DFDLBRDRBLUF\n"," DFDRBURUBDLF\n"," DFDRBUBRUFDL\n"," DFDRBDLBLUFR\n",
        " DFDRBLDLBRUF\n"," DFDRBRUBULFD\n"," DFDBLULUBDFR\n"," DFDBLULBUFDR\n",
        " DFDBRURUBDFL\n"," DFDBRURBUFDL\n"," DFLURDRDLFUB\n"," DFLURDFDBRUL\n",
        " DFLURBUBRDLF\n"," DFLUBDLDBRUF\n"," DFLUBDBDLFUR\n"," DFLUBRURBDLF\n",
        " DFLUBRUBRDFL\n"," DFLUBRBURFDL\n"," DFLUBRBRUFLD\n"," DFLDRFUBURDL\n",
        " DFLDRFUBRULD\n"," DFLDBLUBRUFD\n"," DFLFULUBRBDF\n"," DFLBURUBRFDL\n",
        " DFRULDLDRFUB\n"," DFRULDFDBLUR\n"," DFRULBUBLDRF\n"," DFRUBDRDBLUF\n",
        " DFRUBDBDRFUL\n"," DFRUBLULBDRF\n"," DFRUBLUBLDFR\n"," DFRUBLBULFDR\n",
        " DFRUBLBLUFRD\n"," DFRDLFUBULDR\n"," DFRDLFUBLURD\n"," DFRDBRUBLUFD\n",
        " DFRFURUBLBDF\n"," DFRBULUBLFDR\n"," DBULULDRBLFR\n"," DBULDRBDFRUL\n",
        " DBULFRUFDRBL\n"," DBULBLFRULDR\n"," DBURURDLBRFL\n"," DBURDLBDFLUR\n",
        " DBURFLUFDLBR\n"," DBURBRFLURDL\n"," DBUFULDRFRBL\n"," DBUFURDLFLBR\n",
        " DBUFLURDRFLB\n"," DBUFLURDFRBL\n"," DBUFLFRBURDL\n"," DBUFRULDLFRB\n",
        " DBUFRULDFLBR\n"," DBUFRFLBULDR\n"," DBDLFULUFDRB\n"," DBDLFUFLUBDR\n",
        " DBDLFDRFRUBL\n"," DBDLFLUFURBD\n"," DBDLFRDRFLUB\n"," DBDRFURUFDLB\n",
        " DBDRFUFRUBDL\n"," DBDRFDLFLUBR\n"," DBDRFLDLFRUB\n"," DBDRFRUFULBD\n",
        " DBDFLULUFDBR\n"," DBDFLULFUBDR\n"," DBDFRURUFDBL\n"," DBDFRURFUBDL\n",
        " DBLURDRDLBUF\n"," DBLURDBDFRUL\n"," DBLURFUFRDLB\n"," DBLUFDLDFRUB\n",
        " DBLUFDFDLBUR\n"," DBLUFRURFDLB\n"," DBLUFRUFRDBL\n"," DBLUFRFURBDL\n",
        " DBLUFRFRUBLD\n"," DBLDRBUFURDL\n"," DBLDRBUFRULD\n"," DBLDFLUFRUBD\n",
        " DBLFURUFRBDL\n"," DBLBULUFRFDB\n"," DBRULDLDRBUF\n"," DBRULDBDFLUR\n",
        " DBRULFUFLDRB\n"," DBRUFDRDFLUB\n"," DBRUFDFDRBUL\n"," DBRUFLULFDRB\n",
        " DBRUFLUFLDBR\n"," DBRUFLFULBDR\n"," DBRUFLFLUBRD\n"," DBRDLBUFULDR\n",
        " DBRDLBUFLURD\n"," DBRDFRUFLUBD\n"," DBRFULUFLBDR\n"," DBRBURUFLFDB\n",
        " LULDFRFDRULB\n"," LULDFRFRDLUB\n"," LULDBRBDRULF\n"," LULDBRBRDLUF\n",
        " LULFDLBDBRUF\n"," LULFDRDFRULB\n"," LULFDRFRDLBU\n"," LULFDFRDRBUL\n",
        " LULFDBLBDFRU\n"," LULBDLFDFRUB\n"," LULBDRDBRULF\n"," LULBDRBRDLFU\n",
        " LULBDFLFDBRU\n"," LULBDBRDRFUL\n"," LURDRFLBDBUF\n"," LURDRBLFDFUB\n",
        " LURDFDBURBLF\n"," LURDFRBLDBUF\n"," LURDFRBLBDFU\n"," LURDBDFURFLB\n",
        " LURDBRFLDFUB\n"," LURDBRFLFDBU\n"," LURFUFDBRFLB\n"," LURFDBRDLBUF\n",
        " LURFLBULDBRF\n"," LURFRFLBUFDB\n"," LURBUBDFRBLF\n"," LURBDFRDLFUB\n",
        " LURBLFULDFRB\n"," LURBRBLFUBDF\n"," LUFURFRDBDLU\n"," LUFDRBRDBULF\n",
        " LUFLDFRDBRUL\n"," LUFLBURDRBLF\n"," LUFLBURDBRFL\n"," LUFRDLDLFURB\n",
        " LUFRDLFLDBRU\n"," LUFRDBDRBULF\n"," LUFRDBDBRUFL\n"," LUFRDBRDBLUF\n",
        " LUFRDBRBDLFU\n"," LUFRBDRDBLFU\n"," LUFRBLULDBRF\n"," LUFRBLBLFURD\n",
        " LUBURBRDFDLU\n"," LUBDRFRDFULB\n"," LUBLDBRDFRUL\n"," LUBLFURDRFLB\n",
        " LUBLFURDFRBL\n"," LUBRDLDLBURF\n"," LUBRDLBLDFRU\n"," LUBRDFDRFULB\n",
        " LUBRDFDFRUBL\n"," LUBRDFRDFLUB\n"," LUBRDFRFDLBU\n"," LUBRFDRDFLBU\n",
        " LUBRFLULDFRB\n"," LUBRFLFLBURD\n"," LDLUFRFURDLB\n"," LDLUFRFRULDB\n",
        " LDLUBRBURDLF\n"," LDLUBRBRULDF\n"," LDLFULBUBRDF\n"," LDLFURUFRDLB\n",
        " LDLFURFRULBD\n"," LDLFUFRURBDL\n"," LDLFUBLBUFRD\n"," LDLBULFUFRDB\n",
        " LDLBURUBRDLF\n"," LDLBURBRULFD\n"," LDLBUFLFUBRD\n"," LDLBUBRURFDL\n",
        " LDRURFLBUBDF\n"," LDRURBLFUFDB\n"," LDRUFUBDRBLF\n"," LDRUFRBLUBDF\n",
        " LDRUFRBLBUFD\n"," LDRUBUFDRFLB\n"," LDRUBRFLUFDB\n"," LDRUBRFLFUBD\n",
        " LDRFUBRULBDF\n"," LDRFDFUBRFLB\n"," LDRFLBDLUBRF\n"," LDRFRFLBDFUB\n",
        " LDRBUFRULFDB\n"," LDRBDBUFRBLF\n"," LDRBLFDLUFRB\n"," LDRBRBLFDBUF\n",
        " LDFURBRUBDLF\n"," LDFDRFRUBULD\n"," LDFLUFRUBRDL\n"," LDFLBDRURBLF\n",
        " LDFLBDRUBRFL\n"," LDFRULULFDRB\n"," LDFRULFLUBRD\n"," LDFRUBURBDLF\n",
        " LDFRUBUBRDFL\n"," LDFRUBRUBLDF\n"," LDFRUBRBULFD\n"," LDFRBURUBLFD\n",
        " LDFRBLDLUBRF\n"," LDFRBLBLFDRU\n"," LDBURFRUFDLB\n"," LDBDRBRUFULD\n",
        " LDBLUBRUFRDL\n"," LDBLFDRURFLB\n"," LDBLFDRUFRBL\n"," LDBRULULBDRF\n",
        " LDBRULBLUFRD\n"," LDBRUFURFDLB\n"," LDBRUFUFRDBL\n"," LDBRUFRUFLDB\n",
        " LDBRUFRFULBD\n"," LDBRFURUFLBD\n"," LDBRFLDLUFRB\n"," LDBRFLFLBDRU\n",
        " LFULDFRBDRUL\n"," LFULDFRBRDLU\n"," LFULBURBDRFL\n"," LFURDLDLUFRB\n",
        " LFURDLFLBDRU\n"," LFURDBRBDLUF\n"," LFURBDRDBLUF\n"," LFURBDRBDLFU\n",
        " LFURBDBDRFUL\n"," LFURBDBRDFLU\n"," LFURBLULBDRF\n"," LFURBLBLUFRD\n",
        " LFUFRURBDBLF\n"," LFUBRDRBDFLU\n"," LFDLUFRBURDL\n"," LFDLUFRBRULD\n",
        " LFDLBDRBURFL\n"," LFDRULULDFRB\n"," LFDRULFLBURD\n"," LFDRUBRBULDF\n",
        " LFDRBURUBLDF\n"," LFDRBURBULFD\n"," LFDRBUBURFDL\n"," LFDRBUBRUFLD\n",
        " LFDRBLDLBURF\n"," LFDRBLBLDFRU\n"," LFDFRDRBUBLF\n"," LFDBRURBUFLD\n",
        " LFLUBURBRDFL\n"," LFLUBDLDBURF\n"," LFLUBLDBDRFU\n"," LFLUBRURBLDF\n",
        " LFLUBRBURFLD\n"," LFLDBULUBDRF\n"," LFLDBDRBRUFL\n"," LFLDBLUBURFD\n",
        " LFLDBRDRBLUF\n"," LFLDBRBDRFLU\n"," LFLBURURBLFD\n"," LFLBURUBRFLD\n",
        " LFLBDRDRBLFU\n"," LFLBDRDBRFLU\n"," LFRULDFLBDRU\n"," LFRURULDFUBD\n",
        " LFRUFUBDRULD\n"," LFRUBDRBLDFU\n"," LFRDLUFLBURD\n"," LFRDRDLUFDBU\n",
        " LFRDFDBURDLU\n"," LFRDBURBLUFD\n"," LFRBURDLDBUF\n"," LFRBURDLBDFU\n",
        " LFRBUBDFRDLU\n"," LFRBDRULUBDF\n"," LFRBDRULBUFD\n"," LFRBDBUFRULD\n",
        " LFRBRULDBDFU\n"," LFRBRDLUBUFD\n"," LBULDBRFDRUL\n"," LBULDBRFRDLU\n",
        " LBULFURFDRBL\n"," LBURDLDLUBRF\n"," LBURDLBLFDRU\n"," LBURDFRFDLUB\n",
        " LBURFDRDFLUB\n"," LBURFDRFDLBU\n"," LBURFDFDRBUL\n"," LBURFDFRDBLU\n",
        " LBURFLULFDRB\n"," LBURFLFLUBRD\n"," LBUFRDRFDBLU\n"," LBUBRURFDFLB\n",
        " LBDLUBRFURDL\n"," LBDLUBRFRULD\n"," LBDLFDRFURBL\n"," LBDRULULDBRF\n",
        " LBDRULBLFURD\n"," LBDRUFRFULDB\n"," LBDRFURUFLDB\n"," LBDRFURFULBD\n",
        " LBDRFUFURBDL\n"," LBDRFUFRUBLD\n"," LBDRFLDLFURB\n"," LBDRFLFLDBRU\n",
        " LBDFRURFUBLD\n"," LBDBRDRFUFLB\n"," LBLUFURFRDBL\n"," LBLUFDLDFURB\n",
        " LBLUFLDFDRBU\n"," LBLUFRURFLDB\n"," LBLUFRFURBLD\n"," LBLDFULUFDRB\n",
        " LBLDFDRFRUBL\n"," LBLDFLUFURBD\n"," LBLDFRDRFLUB\n"," LBLDFRFDRBLU\n",
        " LBLFURURFLBD\n"," LBLFURUFRBLD\n"," LBLFDRDRFLBU\n"," LBLFDRDFRBLU\n",
        " LBRULDBLFDRU\n"," LBRURULDBUFD\n"," LBRUFDRFLDBU\n"," LBRUBUFDRULD\n",
        " LBRDLUBLFURD\n"," LBRDRDLUBDFU\n"," LBRDFURFLUBD\n"," LBRDBDFURDLU\n",
        " LBRFURDLDFUB\n"," LBRFURDLFDBU\n"," LBRFUFDBRDLU\n"," LBRFDRULUFDB\n",
        " LBRFDRULFUBD\n"," LBRFDFUBRULD\n"," LBRFRULDFDBU\n"," LBRFRDLUFUBD\n",
        " RULDLFRBDBUF\n"," RULDLBRFDFUB\n"," RULDFDBULBRF\n"," RULDFLBRDBUF\n",
        " RULDFLBRBDFU\n"," RULDBDFULFRB\n"," RULDBLFRDFUB\n"," RULDBLFRFDBU\n",
        " RULFUFDBLFRB\n"," RULFDBLDRBUF\n"," RULFLFRBUFDB\n"," RULFRBURDBLF\n",
        " RULBUBDFLBRF\n"," RULBDFLDRFUB\n"," RULBLBRFUBDF\n"," RULBRFURDFLB\n",
        " RURDFLFDLURB\n"," RURDFLFLDRUB\n"," RURDBLBDLURF\n"," RURDBLBLDRUF\n",
        " RURFDLDFLURB\n"," RURFDLFLDRBU\n"," RURFDRBDBLUF\n"," RURFDFLDLBUR\n",
        " RURFDBRBDFLU\n"," RURBDLDBLURF\n"," RURBDLBLDRFU\n"," RURBDRFDFLUB\n",
        " RURBDFRFDBLU\n"," RURBDBLDLFUR\n"," RUFULFLDBDRU\n"," RUFDLBLDBURF\n",
        " RUFLDRDRFULB\n"," RUFLDRFRDBLU\n"," RUFLDBDLBURF\n"," RUFLDBDBLUFR\n",
        " RUFLDBLDBRUF\n"," RUFLDBLBDRFU\n"," RUFLBDLDBRFU\n"," RUFLBRURDBLF\n",
        " RUFLBRBRFULD\n"," RUFRDFLDBLUR\n"," RUFRBULDLBRF\n"," RUFRBULDBLFR\n",
        " RUBULBLDFDRU\n"," RUBDLFLDFURB\n"," RUBLDRDRBULF\n"," RUBLDRBRDFLU\n",
        " RUBLDFDLFURB\n"," RUBLDFDFLUBR\n"," RUBLDFLDFRUB\n"," RUBLDFLFDRBU\n",
        " RUBLFDLDFRBU\n"," RUBLFRURDFLB\n"," RUBLFRFRBULD\n"," RUBRDBLDFLUR\n",
        " RUBRFULDLFRB\n"," RUBRFULDFLBR\n"," RDLULFRBUBDF\n"," RDLULBRFUFDB\n",
        " RDLUFUBDLBRF\n"," RDLUFLBRUBDF\n"," RDLUFLBRBUFD\n"," RDLUBUFDLFRB\n",
        " RDLUBLFRUFDB\n"," RDLUBLFRFUBD\n"," RDLFUBLURBDF\n"," RDLFDFUBLFRB\n",
        " RDLFLFRBDFUB\n"," RDLFRBDRUBLF\n"," RDLBUFLURFDB\n"," RDLBDBUFLBRF\n",
        " RDLBLBRFDBUF\n"," RDLBRFDRUFLB\n"," RDRUFLFULDRB\n"," RDRUFLFLURDB\n",
        " RDRUBLBULDRF\n"," RDRUBLBLURDF\n"," RDRFULUFLDRB\n"," RDRFULFLURBD\n",
        " RDRFURBUBLDF\n"," RDRFUFLULBDR\n"," RDRFUBRBUFLD\n"," RDRBULUBLDRF\n",
        " RDRBULBLURFD\n"," RDRBURFUFLDB\n"," RDRBUFRFUBLD\n"," RDRBUBLULFDR\n",
        " RDFULBLUBDRF\n"," RDFDLFLUBURD\n"," RDFLURURFDLB\n"," RDFLURFRUBLD\n",
        " RDFLUBULBDRF\n"," RDFLUBUBLDFR\n"," RDFLUBLUBRDF\n"," RDFLUBLBURFD\n",
        " RDFLBULUBRFD\n"," RDFLBRDRUBLF\n"," RDFLBRBRFDLU\n"," RDFRUFLUBLDR\n",
        " RDFRBDLULBRF\n"," RDFRBDLUBLFR\n"," RDBULFLUFDRB\n"," RDBDLBLUFURD\n",
        " RDBLURURBDLF\n"," RDBLURBRUFLD\n"," RDBLUFULFDRB\n"," RDBLUFUFLDBR\n",
        " RDBLUFLUFRDB\n"," RDBLUFLFURBD\n"," RDBLFULUFRBD\n"," RDBLFRDRUFLB\n",
        " RDBLFRFRBDLU\n"," RDBRUBLUFLDR\n"," RDBRFDLULFRB\n"," RDBRFDLUFLBR\n",
        " RFULDRDRUFLB\n"," RFULDRFRBDLU\n"," RFULDBLBDRUF\n"," RFULBDLDBRUF\n",
        " RFULBDLBDRFU\n"," RFULBDBDLFUR\n"," RFULBDBLDFRU\n"," RFULBRURBDLF\n",
        " RFULBRBRUFLD\n"," RFURDFLBDLUR\n"," RFURDFLBLDRU\n"," RFURBULBDLFR\n",
        " RFUFLULBDBRF\n"," RFUBLDLBDFRU\n"," RFDLURURDFLB\n"," RFDLURFRBULD\n",
        " RFDLUBLBURDF\n"," RFDLBULUBRDF\n"," RFDLBULBURFD\n"," RFDLBUBULFDR\n",
        " RFDLBUBLUFRD\n"," RFDLBRDRBULF\n"," RFDLBRBRDFLU\n"," RFDRUFLBULDR\n",
        " RFDRUFLBLURD\n"," RFDRBDLBULFR\n"," RFDFLDLBUBRF\n"," RFDBLULBUFRD\n",
        " RFLULURDFUBD\n"," RFLURDFRBDLU\n"," RFLUFUBDLURD\n"," RFLUBDLBRDFU\n",
        " RFLDLDRUFDBU\n"," RFLDRUFRBULD\n"," RFLDFDBULDRU\n"," RFLDBULBRUFD\n",
        " RFLBULDRDBUF\n"," RFLBULDRBDFU\n"," RFLBUBDFLDRU\n"," RFLBDLURUBDF\n",
        " RFLBDLURBUFD\n"," RFLBDBUFLURD\n"," RFLBLURDBDFU\n"," RFLBLDRUBUFD\n",
        " RFRUBULBLDFR\n"," RFRUBDRDBULF\n"," RFRUBLULBRDF\n"," RFRUBLBULFRD\n",
        " RFRUBRDBDLFU\n"," RFRDBURUBDLF\n"," RFRDBDLBLUFR\n"," RFRDBLDLBRUF\n",
        " RFRDBLBDLFRU\n"," RFRDBRUBULFD\n"," RFRBULULBRFD\n"," RFRBULUBLFRD\n",
        " RFRBDLDLBRFU\n"," RFRBDLDBLFRU\n"," RBULDRDRUBLF\n"," RBULDRBRFDLU\n",
        " RBULDFLFDRUB\n"," RBULFDLDFRUB\n"," RBULFDLFDRBU\n"," RBULFDFDLBUR\n",
        " RBULFDFLDBRU\n"," RBULFRURFDLB\n"," RBULFRFRUBLD\n"," RBURDBLFDLUR\n",
        " RBURDBLFLDRU\n"," RBURFULFDLBR\n"," RBUFLDLFDBRU\n"," RBUBLULFDFRB\n",
        " RBDLURURDBLF\n"," RBDLURBRFULD\n"," RBDLUFLFURDB\n"," RBDLFULUFRDB\n",
        " RBDLFULFURBD\n"," RBDLFUFULBDR\n"," RBDLFUFLUBRD\n"," RBDLFRDRFULB\n",
        " RBDLFRFRDBLU\n"," RBDRUBLFULDR\n"," RBDRUBLFLURD\n"," RBDRFDLFULBR\n",
        " RBDFLULFUBRD\n"," RBDBLDLFUFRB\n"," RBLULURDBUFD\n"," RBLURDBRFDLU\n",
        " RBLUFDLFRDBU\n"," RBLUBUFDLURD\n"," RBLDLDRUBDFU\n"," RBLDRUBRFULD\n",
        " RBLDFULFRUBD\n"," RBLDBDFULDRU\n"," RBLFULDRDFUB\n"," RBLFULDRFDBU\n",
        " RBLFUFDBLDRU\n"," RBLFDLURUFDB\n"," RBLFDLURFUBD\n"," RBLFDFUBLURD\n",
        " RBLFLURDFDBU\n"," RBLFLDRUFUBD\n"," RBRUFULFLDBR\n"," RBRUFDRDFULB\n",
        " RBRUFLULFRDB\n"," RBRUFLFULBRD\n"," RBRUFRDFDLBU\n"," RBRDFURUFDLB\n",
        " RBRDFDLFLUBR\n"," RBRDFLDLFRUB\n"," RBRDFLFDLBRU\n"," RBRDFRUFULBD\n",
        " RBRFULULFRBD\n"," RBRFULUFLBRD\n"," RBRFDLDLFRBU\n"," RBRFDLDFLBRU\n",
        " FULUBLBDRDFU\n"," FULDBRBDRUFL\n"," FULFDLBDRBUF\n"," FULFRUBDRBLF\n",
        " FULFRUBDBRFL\n"," FULBDRDRBULF\n"," FULBDRDBRUFL\n"," FULBDRBDRFUL\n",
        " FULBDRBRDFLU\n"," FULBDFDFLUBR\n"," FULBDFLFDRBU\n"," FULBRDBDRFLU\n",
        " FULBRFUFDRBL\n"," FULBRFRFLUBD\n"," FURUBRBDLDFU\n"," FURDBLBDLUFR\n",
        " FURFDRBDLBUF\n"," FURFLUBDLBRF\n"," FURFLUBDBLFR\n"," FURBDLDLBURF\n",
        " FURBDLDBLUFR\n"," FURBDLBDLFUR\n"," FURBDLBLDFRU\n"," FURBDFDFRUBL\n",
        " FURBDFRFDLBU\n"," FURBLDBDLFRU\n"," FURBLFUFDLBR\n"," FURBLFLFRUBD\n",
        " FUFDLBLDBUFR\n"," FUFDLBLBDFUR\n"," FUFDRBRDBUFL\n"," FUFDRBRBDFUL\n",
        " FUFLDLBDBRUF\n"," FUFLDRFRDLBU\n"," FUFLDFRDRBUL\n"," FUFLDBDLBUFR\n",
        " FUFLDBLBDFRU\n"," FUFRDLFLDRBU\n"," FUFRDRBDBLUF\n"," FUFRDFLDLBUR\n",
        " FUFRDBDRBUFL\n"," FUFRDBRBDFLU\n"," FUBDLDRUBRFL\n"," FUBDLBRFDRUL\n",
        " FUBDLBRFRDLU\n"," FUBDRDLUBLFR\n"," FUBDRBLFDLUR\n"," FUBDRBLFLDRU\n",
        " FUBDBLFRDRUL\n"," FUBDBRFLDLUR\n"," FUBLULDRBLFR\n"," FUBLDRBDFRUL\n",
        " FUBLFRUFDRBL\n"," FUBLBLFRULDR\n"," FUBRURDLBRFL\n"," FUBRDLBDFLUR\n",
        " FUBRFLUFDLBR\n"," FUBRBRFLURDL\n"," FDLUBRBURDFL\n"," FDLDBLBURUFD\n",
        " FDLFULBURBDF\n"," FDLFRDBURBLF\n"," FDLFRDBUBRFL\n"," FDLBURURBDLF\n",
        " FDLBURUBRDFL\n"," FDLBURBURFDL\n"," FDLBURBRUFLD\n"," FDLBUFUFLDBR\n",
        " FDLBUFLFURBD\n"," FDLBRUBURFLD\n"," FDLBRFDFURBL\n"," FDLBRFRFLDBU\n",
        " FDRUBLBULDFR\n"," FDRDBRBULUFD\n"," FDRFURBULBDF\n"," FDRFLDBULBRF\n",
        " FDRFLDBUBLFR\n"," FDRBULULBDRF\n"," FDRBULUBLDFR\n"," FDRBULBULFDR\n",
        " FDRBULBLUFRD\n"," FDRBUFUFRDBL\n"," FDRBUFRFULBD\n"," FDRBLUBULFRD\n",
        " FDRBLFDFULBR\n"," FDRBLFLFRDBU\n"," FDFULBLUBDFR\n"," FDFULBLBUFDR\n",
        " FDFURBRUBDFL\n"," FDFURBRBUFDL\n"," FDFLULBUBRDF\n"," FDFLURFRULBD\n",
        " FDFLUFRURBDL\n"," FDFLUBULBDFR\n"," FDFLUBLBUFRD\n"," FDFRULFLURBD\n",
        " FDFRURBUBLDF\n"," FDFRUFLULBDR\n"," FDFRUBURBDFL\n"," FDFRUBRBUFLD\n",
        " FDBULURDBRFL\n"," FDBULBRFURDL\n"," FDBULBRFRULD\n"," FDBURULDBLFR\n",
        " FDBURBLFULDR\n"," FDBURBLFLURD\n"," FDBUBLFRURDL\n"," FDBUBRFLULDR\n",
        " FDBLURBUFRDL\n"," FDBLDLURBLFR\n"," FDBLFRDFURBL\n"," FDBLBLFRDLUR\n",
        " FDBRULBUFLDR\n"," FDBRDRULBRFL\n"," FDBRFLDFULBR\n"," FDBRBRFLDRUL\n",
        " FLULBUBRDRFL\n"," FLURBDBRDLFU\n"," FLUFDLBRDBUF\n"," FLUFDLBRBDFU\n",
        " FLUFRUBRDBLF\n"," FLUBDRBRDFUL\n"," FLUBDFDFULBR\n"," FLUBDFLFRDBU\n",
        " FLUBRDRDBLUF\n"," FLUBRDRBDLFU\n"," FLUBRDBDRFUL\n"," FLUBRDBRDFLU\n",
        " FLUBRFUFRDBL\n"," FLUBRFRFULBD\n"," FLDLBDBRURFL\n"," FLDRBUBRULFD\n",
        " FLDFULBRUBDF\n"," FLDFULBRBUFD\n"," FLDFRDBRUBLF\n"," FLDBURBRUFDL\n",
        " FLDBUFUFDLBR\n"," FLDBUFLFRUBD\n"," FLDBRURUBLDF\n"," FLDBRURBULFD\n",
        " FLDBRUBURFDL\n"," FLDBRUBRUFLD\n"," FLDBRFDFRUBL\n"," FLDBRFRFDLBU\n",
        " FLFURUBRBDLF\n"," FLFURDFDRUBL\n"," FLFURFDRDBLU\n"," FLFURBUBRFDL\n",
        " FLFURBRUBLFD\n"," FLFDRUFURDBL\n"," FLFDRDBRBULF\n"," FLFDRFURUBLD\n",
        " FLFDRBDBRFUL\n"," FLFDRBRDBLFU\n"," FLFRUBURBLFD\n"," FLFRUBUBRFLD\n",
        " FLFRDBDRBLFU\n"," FLFRDBDBRFLU\n"," FLBULURDBUFD\n"," FLBURDBRFDLU\n",
        " FLBUFDLFRDBU\n"," FLBUBUFDLURD\n"," FLBDLDRUBDFU\n"," FLBDRUBRFULD\n",
        " FLBDFULFRUBD\n"," FLBDBDFULDRU\n"," FLBRURDLBDFU\n"," FLBRUBDFDRUL\n",
        " FLBRUBDFRDLU\n"," FLBRDRULBUFD\n"," FLBRDBUFURDL\n"," FLBRDBUFRULD\n",
        " FLBRBUFDRDLU\n"," FLBRBDFURULD\n"," FRULBDBLDRFU\n"," FRURBUBLDLFR\n",
        " FRUFDRBLDBUF\n"," FRUFDRBLBDFU\n"," FRUFLUBLDBRF\n"," FRUBDLBLDFUR\n",
        " FRUBDFDFURBL\n"," FRUBDFRFLDBU\n"," FRUBLDLDBRUF\n"," FRUBLDLBDRFU\n",
        " FRUBLDBDLFUR\n"," FRUBLDBLDFRU\n"," FRUBLFUFLDBR\n"," FRUBLFLFURBD\n",
        " FRDLBUBLURFD\n"," FRDRBDBLULFR\n"," FRDFURBLUBDF\n"," FRDFURBLBUFD\n",
        " FRDFLDBLUBRF\n"," FRDBULBLUFDR\n"," FRDBUFUFDRBL\n"," FRDBUFRFLUBD\n",
        " FRDBLULUBRDF\n"," FRDBLULBURFD\n"," FRDBLUBULFDR\n"," FRDBLUBLUFRD\n",
        " FRDBLFDFLUBR\n"," FRDBLFLFDRBU\n"," FRFULUBLBDRF\n"," FRFULDFDLUBR\n",
        " FRFULFDLDBRU\n"," FRFULBUBLFDR\n"," FRFULBLUBRFD\n"," FRFDLUFULDBR\n",
        " FRFDLDBLBURF\n"," FRFDLFULUBRD\n"," FRFDLBDBLFUR\n"," FRFDLBLDBRFU\n",
        " FRFLUBULBRFD\n"," FRFLUBUBLFRD\n"," FRFLDBDLBRFU\n"," FRFLDBDBLFRU\n",
        " FRBULDBLFDRU\n"," FRBURULDBUFD\n"," FRBUFDRFLDBU\n"," FRBUBUFDRULD\n",
        " FRBDLUBLFURD\n"," FRBDRDLUBDFU\n"," FRBDFURFLUBD\n"," FRBDBDFURDLU\n",
        " FRBLULDRBDFU\n"," FRBLUBDFDLUR\n"," FRBLUBDFLDRU\n"," FRBLDLURBUFD\n",
        " FRBLDBUFULDR\n"," FRBLDBUFLURD\n"," FRBLBUFDLDRU\n"," FRBLBDFULURD\n",
        " BULUFLFDRDBU\n"," BULDFRFDRUBL\n"," BULFDRDRFULB\n"," BULFDRDFRUBL\n",
        " BULFDRFDRBUL\n"," BULFDRFRDBLU\n"," BULFDBDBLUFR\n"," BULFDBLBDRFU\n",
        " BULFRDFDRBLU\n"," BULFRBUBDRFL\n"," BULFRBRBLUFD\n"," BULBDLFDRFUB\n",
        " BULBRUFDRFLB\n"," BULBRUFDFRBL\n"," BURUFRFDLDBU\n"," BURDFLFDLUBR\n",
        " BURFDLDLFURB\n"," BURFDLDFLUBR\n"," BURFDLFDLBUR\n"," BURFDLFLDBRU\n",
        " BURFDBDBRUFL\n"," BURFDBRBDLFU\n"," BURFLDFDLBRU\n"," BURFLBUBDLFR\n",
        " BURFLBLBRUFD\n"," BURBDRFDLFUB\n"," BURBLUFDLFRB\n"," BURBLUFDFLBR\n",
        " BUFDLDRUFRBL\n"," BUFDLFRBDRUL\n"," BUFDLFRBRDLU\n"," BUFDRDLUFLBR\n",
        " BUFDRFLBDLUR\n"," BUFDRFLBLDRU\n"," BUFDFLBRDRUL\n"," BUFDFRBLDLUR\n",
        " BUFLULDRFLBR\n"," BUFLDRFDBRUL\n"," BUFLFLBRULDR\n"," BUFLBRUBDRFL\n",
        " BUFRURDLFRBL\n"," BUFRDLFDBLUR\n"," BUFRFRBLURDL\n"," BUFRBLUBDLFR\n",
        " BUBDLFLDFUBR\n"," BUBDLFLFDBUR\n"," BUBDRFRDFUBL\n"," BUBDRFRFDBUL\n",
        " BUBLDLFDFRUB\n"," BUBLDRBRDLFU\n"," BUBLDFDLFUBR\n"," BUBLDFLFDBRU\n",
        " BUBLDBRDRFUL\n"," BUBRDLBLDRFU\n"," BUBRDRFDFLUB\n"," BUBRDFDRFUBL\n",
        " BUBRDFRFDBLU\n"," BUBRDBLDLFUR\n"," BDLUFRFURDBL\n"," BDLDFLFURUBD\n",
        " BDLFURURFDLB\n"," BDLFURUFRDBL\n"," BDLFURFURBDL\n"," BDLFURFRUBLD\n",
        " BDLFUBUBLDFR\n"," BDLFUBLBURFD\n"," BDLFRUFURBLD\n"," BDLFRBDBURFL\n",
        " BDLFRBRBLDFU\n"," BDLBULFURFDB\n"," BDLBRDFURFLB\n"," BDLBRDFUFRBL\n",
        " BDRUFLFULDBR\n"," BDRDFRFULUBD\n"," BDRFULULFDRB\n"," BDRFULUFLDBR\n",
        " BDRFULFULBDR\n"," BDRFULFLUBRD\n"," BDRFUBUBRDFL\n"," BDRFUBRBULFD\n",
        " BDRFLUFULBRD\n"," BDRFLBDBULFR\n"," BDRFLBLBRDFU\n"," BDRBURFULFDB\n",
        " BDRBLDFULFRB\n"," BDRBLDFUFLBR\n"," BDFULURDFRBL\n"," BDFULFRBURDL\n",
        " BDFULFRBRULD\n"," BDFURULDFLBR\n"," BDFURFLBULDR\n"," BDFURFLBLURD\n",
        " BDFUFLBRURDL\n"," BDFUFRBLULDR\n"," BDFLURFUBRDL\n"," BDFLDLURFLBR\n",
        " BDFLFLBRDLUR\n"," BDFLBRDBURFL\n"," BDFRULFUBLDR\n"," BDFRDRULFRBL\n",
        " BDFRFRBLDRUL\n"," BDFRBLDBULFR\n"," BDBULFLUFDBR\n"," BDBULFLFUBDR\n",
        " BDBURFRUFDBL\n"," BDBURFRFUBDL\n"," BDBLULFUFRDB\n"," BDBLURBRULFD\n",
        " BDBLUFULFDBR\n"," BDBLUFLFUBRD\n"," BDBLUBRURFDL\n"," BDBRULBLURFD\n",
        " BDBRURFUFLDB\n"," BDBRUFURFDBL\n"," BDBRUFRFUBLD\n"," BDBRUBLULFDR\n",
        " BLULFUFRDRBL\n"," BLURFDFRDLBU\n"," BLUFDRFRDBUL\n"," BLUFDBDBULFR\n",
        " BLUFDBLBRDFU\n"," BLUFRDRDFLUB\n"," BLUFRDRFDLBU\n"," BLUFRDFDRBUL\n",
        " BLUFRDFRDBLU\n"," BLUFRBUBRDFL\n"," BLUFRBRBULFD\n"," BLUBDLFRDFUB\n",
        " BLUBDLFRFDBU\n"," BLUBRUFRDFLB\n"," BLDLFDFRURBL\n"," BLDRFUFRULBD\n",
        " BLDFURFRUBDL\n"," BLDFUBUBDLFR\n"," BLDFUBLBRUFD\n"," BLDFRURUFLDB\n",
        " BLDFRURFULBD\n"," BLDFRUFURBDL\n"," BLDFRUFRUBLD\n"," BLDFRBDBRUFL\n",
        " BLDFRBRBDLFU\n"," BLDBULFRUFDB\n"," BLDBULFRFUBD\n"," BLDBRDFRUFLB\n",
        " BLFULURDFUBD\n"," BLFURDFRBDLU\n"," BLFUFUBDLURD\n"," BLFUBDLBRDFU\n",
        " BLFDLDRUFDBU\n"," BLFDRUFRBULD\n"," BLFDFDBULDRU\n"," BLFDBULBRUFD\n",
        " BLFRURDLFDBU\n"," BLFRUFDBDRUL\n"," BLFRUFDBRDLU\n"," BLFRDRULFUBD\n",
        " BLFRDFUBURDL\n"," BLFRDFUBRULD\n"," BLFRFUBDRDLU\n"," BLFRFDBURULD\n",
        " BLBURUFRFDLB\n"," BLBURDBDRUFL\n"," BLBURFUFRBDL\n"," BLBURFRUFLBD\n",
        " BLBURBDRDFLU\n"," BLBDRUBURDFL\n"," BLBDRDFRFULB\n"," BLBDRFDFRBUL\n",
        " BLBDRFRDFLBU\n"," BLBDRBURUFLD\n"," BLBRUFURFLBD\n"," BLBRUFUFRBLD\n",
        " BLBRDFDRFLBU\n"," BLBRDFDFRBLU\n"," BRULFDFLDRBU\n"," BRURFUFLDLBR\n",
        " BRUFDLFLDBUR\n"," BRUFDBDBURFL\n"," BRUFDBRBLDFU\n"," BRUFLDLDFRUB\n",
        " BRUFLDLFDRBU\n"," BRUFLDFDLBUR\n"," BRUFLDFLDBRU\n"," BRUFLBUBLDFR\n",
        " BRUFLBLBURFD\n"," BRUBDRFLDFUB\n"," BRUBDRFLFDBU\n"," BRUBLUFLDFRB\n",
        " BRDLFUFLURBD\n"," BRDRFDFLULBR\n"," BRDFULFLUBDR\n"," BRDFUBUBDRFL\n",
        " BRDFUBRBLUFD\n"," BRDFLULUFRDB\n"," BRDFLULFURBD\n"," BRDFLUFULBDR\n",
        " BRDFLUFLUBRD\n"," BRDFLBDBLUFR\n"," BRDFLBLBDRFU\n"," BRDBURFLUFDB\n",
        " BRDBURFLFUBD\n"," BRDBLDFLUFRB\n"," BRFULDFLBDRU\n"," BRFURULDFUBD\n",
        " BRFUFUBDRULD\n"," BRFUBDRBLDFU\n"," BRFDLUFLBURD\n"," BRFDRDLUFDBU\n",
        " BRFDFDBURDLU\n"," BRFDBURBLUFD\n"," BRFLULDRFDBU\n"," BRFLUFDBDLUR\n",
        " BRFLUFDBLDRU\n"," BRFLDLURFUBD\n"," BRFLDFUBULDR\n"," BRFLDFUBLURD\n",
        " BRFLFUBDLDRU\n"," BRFLFDBULURD\n"," BRBULUFLFDRB\n"," BRBULDBDLUFR\n",
        " BRBULFUFLBDR\n"," BRBULFLUFRBD\n"," BRBULBDLDFRU\n"," BRBDLUBULDFR\n",
        " BRBDLDFLFURB\n"," BRBDLFDFLBUR\n"," BRBDLFLDFRBU\n"," BRBDLBULUFRD\n",
        " BRBLUFULFRBD\n"," BRBLUFUFLBRD\n"," BRBLDFDLFRBU\n"," BRBLDFDFLBRU\n"
    }
};
inline bool check2 ( int t )
{
    int pnt[4];memset(pnt,0,sizeof(pnt));
    bool g[100][100][100];
    for ( int i=0;i<99;i++ )
        for ( int j=0;j<99;j++ )
            for ( int k=0;k<99;k++ ) g[i][j][k]=f[i][j][k];
    for ( int i=1;i<=n;i++ )
    {
        char ch=c[n-10][t][i];
        for ( int j=1;j<=i;j++ )
        {
            pnt[mp[ch]]+=add[ch];
            if ( g[pnt[1]+45][pnt[2]+45][pnt[3]+45] ) return false;
            g[pnt[1]+45][pnt[2]+45][pnt[3]+45]=true;
        }
    }
    return true;
}
inline void game2_main ( void )
{
    int l=(n==11)?528:1392;
    for ( int i=1;i<=l;i++ )
        if ( !m || check2(i) )
            for ( int j=1;j<=n+1;j++ ) putchar(c[n-10][i][j]);
}
inline int read ( void )
{
    int x=0;char ch;bool f=true;
    while ( !isdigit(ch=getchar()) ) if ( ch=='-' ) f=false;
    for ( x=ch-48;isdigit(ch=getchar()); ) x=(x<<1)+(x<<3)+ch-48;
    return f ? x : -x;
}
int main()
{
    n=read();m=read();init();
    for ( int i=1,x,y,z;i<=m;i++ )
    {
        x=read();y=read();z=read();
        if ( abs(x)<=42 && abs(y)<=42 && abs(z)<=42 ) f[x+45][y+45][z+45]=true;
    }
    if ( n<=6 || n==9 || n==10 ) return 0;
    if ( n<10 ) game1_main();
    else game2_main();
    return 0;
}

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值