QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#553961#7564. Gameucup-team1231AC ✓7894ms91404kbC++145.1kb2024-09-09 00:11:532024-09-09 00:11:53

Judging History

你现在查看的是最新测评结果

  • [2024-09-09 00:11:53]
  • 评测
  • 测评结果:AC
  • 用时:7894ms
  • 内存:91404kb
  • [2024-09-09 00:11:53]
  • 提交

answer

#include <bits/stdc++.h>
using namespace std;

typedef vector<int> vi;
typedef long long ll;
const int MOD=998244353;
#define sz(t) int((t).size())
vi operator + (const vi&A,const vi&B) {
    vi C(max(sz(A),sz(B)));
    for(int i=0;i<sz(A);++i) C[i]=A[i];
    for(int i=0;i<sz(B);++i) (C[i]+=B[i])%=MOD;
    return C;
}
int K;
ll qp(ll a,ll b) {
    ll x=1; a%=MOD;
    while(b) {
        if(b&1) x=x*a%MOD;
        a=a*a%MOD; b>>=1;
    }
    return x;
}
const int SZ = 1000005;
ll w[2][SZ];
void fftinit(int n) {
    for(K=1;K<n;K<<=1);
    ll ww=qp(3,(MOD-1)/K);
    w[0][0]=1;
    for(int i=1;i<=K;++i)
        w[0][i]=w[0][i-1]*ww%MOD;
    for(int i=0;i<=K;++i) w[1][i]=w[0][K-i];
}
void fft(int*a,int o) {
    for(int i=0;i<K;++i) {
        int br=i,s=0;
        for(int j=1;j<K;j<<=1)
            s=s*2+br%2,br/=2;
        if(i<s) swap(a[i],a[s]);
    }
    for(int i=2;i<=K;i<<=1)
        for(int l=0;l<K;l+=i)
            for(int j=0;j<(i/2);++j) {
                int &p=a[j+l],&q=a[l+j+(i/2)];
                ll t=q*(ll)w[o][K/i*j]%MOD;
                q=(p-t+MOD)%MOD;
                p=(p+t)%MOD;
            }
    if(!o) return;
    ll rk=qp(K,MOD-2);
    for(int i=0;i<K;++i) a[i]=a[i]*(ll)rk%MOD;
}
vi operator * (const vi&A,const vi&B) {
    if(A.empty()) return A;
    if(B.empty()) return B;
    int u=sz(A)+sz(B)-1;
    vi C(u);
    static int ta[SZ],tb[SZ];
    fftinit(u);
    for(int i=0;i<K;++i) ta[i]=(i<sz(A))?A[i]:0;
    for(int i=0;i<K;++i) tb[i]=(i<sz(B))?B[i]:0;
    fft(ta,0);fft(tb,0);
    for(int i=0;i<K;++i) ta[i]=ta[i]*(ll)tb[i]%MOD;
    fft(ta,1);
    for(int i=0;i<u;++i) C[i]=ta[i];
    return C;
}

int fac[SZ], ifac[SZ];
void init(int n) {
    fac[0] = 1;
    for(int i = 1; i <= n; i++) fac[i] = 1LL * fac[i - 1] * i % MOD;
    ifac[n] = qp(fac[n], MOD - 2);
    for(int i = n; i >= 1; i--) ifac[i - 1] = 1LL * ifac[i] * i % MOD;
}
vi comp(vi A) {
    int n = A.size() - 1;
    vi B(n + 1);
    for(int i = 0; i <= n; i++) A[i] = 1LL * A[i] * fac[i] % MOD;
    reverse(A.begin(), A.end());
    for(int i = 0; i <= n; i++) B[i] = ifac[i];

    vi C = A * B;
    C.resize(n + 1);
    reverse(C.begin(), C.end());
    for(int i = 0; i <= n; i++) C[i] = 1LL * C[i] * ifac[i] % MOD;
    return C;
}

int pw[10];
string s[100000];
string p[100000];
int l[100000][5],r[100000][5];
int diff[27][27][27][27][27];
int main() {
    pw[0] = 1;
    for(int i = 0; i < 5; i++) pw[i + 1] = pw[i] * 26;
    init(100005);

    int i,j;
    int n;
    cin >> n;
    for (i = 0; i < n; i++) {
        cin >> s[i] >> p[i];
        for (j = 0; j < 5; j++) {
            if (p[i][j] == '<') l[i][j] = 0,r[i][j] = s[i][j]-'A'-1;
            else if (p[i][j] == '=') l[i][j] = r[i][j] = s[i][j]-'A';
            else l[i][j] = s[i][j]-'A'+1,r[i][j] = 25;
        }
    }

    int k,m;
    vi poly(n+1);
    for (i = 0; i < 32; i++) {
        cerr<<i<<endl;
        memset(diff,0,sizeof(diff));
        int b = (__builtin_popcount(i) & 1) ? -1:1;
        for (j = 0; j < n; j++) {
            for (m = 0; m < 5; m++) {
                if (l[j][m] >= r[j][m]-((i >> m) & 1)+1) break;
            }
            if (m < 5) continue;
            for (k = 0; k < 32; k++) {
                int I[5];
                for (m = 0; m < 5; m++) {
                    if (!(k & (1 << m))) I[m] = l[j][m];
                    else I[m] = r[j][m]-((i >> m) & 1)+1;
                    if (I[m] == 26) break;
                }
                if (m < 5) continue;
                diff[I[0]][I[1]][I[2]][I[3]][I[4]] += (__builtin_popcount(k) & 1) ? -1:1;
            }
        }
        int I[5];
        for (j = 0; j < 5; j++) {
            for (I[0] = 0; I[0] < 26; I[0]++) {
                for (I[1] = 0; I[1] < 26; I[1]++) {
                    for (I[2] = 0; I[2] < 26; I[2]++) {
                        for (I[3] = 0; I[3] < 26; I[3]++) {
                            for (I[4] = 0; I[4] < 26; I[4]++) {
                                if (I[j] > 0) {
                                    I[j]--;
                                    int v = diff[I[0]][I[1]][I[2]][I[3]][I[4]];
                                    I[j]++;
                                    diff[I[0]][I[1]][I[2]][I[3]][I[4]] += v;
                                }
                            }
                        }
                    }
                }
            }
        }
        for (I[0] = 0; I[0] < 26-(i & 1); I[0]++) {
            for (I[1] = 0; I[1] < 26-((i >> 1) & 1); I[1]++) {
                for (I[2] = 0; I[2] < 26-((i >> 2) & 1); I[2]++) {
                    for (I[3] = 0; I[3] < 26-((i >> 3) & 1); I[3]++) {
                        for (I[4] = 0; I[4] < 26-((i >> 4) & 1); I[4]++) {
                            poly[diff[I[0]][I[1]][I[2]][I[3]][I[4]]] += b;
                        }
                    }
                }
            }
        }
    }
    vi poly2 = comp(poly);
    for (i = 0; i < n; i++) poly2[i] = ((ll) poly2[i]*fac[i]) % MOD;
    for (i = 0; i < n; i++) printf("%d ",((ll) poly2[i]*(n-i)-poly2[i+1]+MOD) % MOD);
    printf("\n");

    return 0;
}

详细

Test #1:

score: 100
Accepted
time: 7399ms
memory: 84444kb

input:

2
FAKER >>>>>
CHOVY =====

output:

0 2 

result:

ok 2 number(s): "0 2"

Test #2:

score: 0
Accepted
time: 7400ms
memory: 82588kb

input:

3
BVHUQ ><>><
YJCEQ <<><<
SXXWZ >>==>

output:

1 4 0 

result:

ok 3 number(s): "1 4 0"

Test #3:

score: 0
Accepted
time: 7437ms
memory: 80844kb

input:

8
IFSXA >><<=
ZAKDA <>=>=
UZVAA <<<>=
MTACA <>>>=
RJKVA <><<=
IOXOA >=<<=
MRMHA ><<<=
BYFWA ==<>=

output:

0 16 108 396 816 720 0 0 

result:

ok 8 numbers

Test #4:

score: 0
Accepted
time: 7315ms
memory: 84820kb

input:

8
BRKPR ><=<>
VUCTO <<=<=
PTCDB <<=>>
PHMGV <><><
FGWHD >><>>
SUSFH <<<<>
IOLDD <<<<>
WJPXX <><<<

output:

0 14 120 444 744 360 0 0 

result:

ok 8 numbers

Test #5:

score: 0
Accepted
time: 7404ms
memory: 81208kb

input:

10
UAVZE =>=<=
QVGJB >==>>
ZLHUS >>>=>
PGZOO ==<><
LAKYL =<=<=
IMQAQ <>>==
OBWGV >>=<>
KQSOR <<>>=
KGFVD >=<==
RFDGJ <>><>

output:

2 66 48 0 0 0 0 0 0 0 

result:

ok 10 numbers

Test #6:

score: 0
Accepted
time: 7469ms
memory: 81432kb

input:

10
GOMVB >>>><
DSPSI =><==
UKTNW <<>=<
SKNLH >=<><
TNYRS =<<><
QZHXW <==>>
NLWVU ><=>=
WHBAI ><>>=
QXDIC <=<>>
JBUFE =>==<

output:

0 86 32 0 0 0 0 0 0 0 

result:

ok 10 numbers

Test #7:

score: 0
Accepted
time: 7447ms
memory: 81008kb

input:

10
SBDSY >>>=>
NSYAP <><>=
PIFGA >=>=>
URDJY <>>><
EDLLY =><<>
ZLWTD >>>>=
OTTLU <><=<
HYKKZ ===<<
VRBUB =<><>
AXKEY <==<>

output:

2 60 90 42 0 0 0 0 0 0 

result:

ok 10 numbers

Test #8:

score: 0
Accepted
time: 7202ms
memory: 82012kb

input:

10
CPIAM ><>>>
FZBGT ><>>>
EUFKN ><>=>
OWUOO <<<<>
RJOOA <>><>
VOMTV <<><=
FZAYC ><><>
GOQML ><><>
WZGOV <<><=
AAAAA <<<<<

output:

1 9 72 504 3024 15120 60480 181440 362880 362880 

result:

ok 10 numbers

Test #9:

score: 0
Accepted
time: 7230ms
memory: 84532kb

input:

10
MYAFR <<>=<
UUOJK <<><>
AWYJM ><=<>
FOSPK ><><>
TUUIA <<><>
OJAMS <>><<
BUEGG ><>>>
PTDUK <<><>
SBLYM <>><>
SFAAX >>>==

output:

0 14 128 816 4344 19320 65520 146160 161280 0 

result:

ok 10 numbers

Test #10:

score: 0
Accepted
time: 7187ms
memory: 82776kb

input:

10
QJQVM <>>><
NYNHE ><>><
WSBQB <<>>>
ONXCP <<<><
CKICH >>>><
CQHZL >>><<
SPKWY <<<<<
FAXVS >><<<
RVBOC <<><>
TRPLG =>>==

output:

0 28 250 1146 2856 3000 0 0 0 0 

result:

ok 10 numbers

Test #11:

score: 0
Accepted
time: 7236ms
memory: 80976kb

input:

10
PDOHN <>>><
YIBBD <>>><
VKHGC <><>>
KLJOB ><>>>
DIUHJ >>=><
AGDCK ><>>>
FFXBK >><><
CHIEL ><>>>
HGPXS >>><<
GFHRX =>>=<

output:

0 38 230 822 2040 3480 2880 0 0 0 

result:

ok 10 numbers

Test #12:

score: 0
Accepted
time: 7244ms
memory: 84592kb

input:

10
BWSGL ><<>>
XEXGK <><>>
OUHKP <>>=<
ZWXCT <><><
VWAOX ><><<
KXAHA ><>>>
VVFUL ><<<>
RHBTD >>><>
FHBMB >>=<>
JKVSX >==>>

output:

0 32 242 930 2424 5160 5760 0 0 0 

result:

ok 10 numbers

Test #13:

score: 0
Accepted
time: 7281ms
memory: 84524kb

input:

10
TFXCY >><<<
ALEDI ><>>>
YBXWE <><<>
YVCHH <<>><
JCYDR ><=><
GNURG ><<<<
QFLEM <>>>>
JUUHR ><><<
LMDZE ><><<
TEDEE >>=><

output:

0 46 268 564 144 0 0 0 0 0 

result:

ok 10 numbers

Test #14:

score: 0
Accepted
time: 7367ms
memory: 91404kb

input:

100000
BNLGH >>===
QXYTZ >>=>>
NRBRX <====
HSKHN <<>>>
WPOWG >===>
UXFEU =><>>
GROWO =><>>
VPKSO <><><
WKUQA ===>>
KGKHU >=>>>
YSIHF >=>><
TOSXN <=>=<
HTCKZ =>=>=
LIDLA >==>=
MNVDK <<<=>
WHGMQ ><>>=
BRCSN ><<>>
YLOEF <<==>
IBVUP <><==
JHWHE <==>>
CBSKF >==>=
OLGHJ <>><<
OUDND =>==<
AMFMU =<===
SDUHG...

output:

12144 412636794 259958531 471914400 521830768 776198196 987954473 677670949 929976028 435141791 915818255 77808332 373696275 860004456 815590598 827302790 334750217 297638785 684154009 734333884 468372005 941077614 669579770 347535008 712117434 881704206 973579427 385468207 664289497 158009373 53637...

result:

ok 100000 numbers

Test #15:

score: 0
Accepted
time: 7366ms
memory: 86068kb

input:

100000
YZHMP ><<==
WTMOD <>><<
RPZJR >=>=<
AAJNC ===>=
DIHKN =><><
ANVCM <<><=
GLDOE <><=>
KSNER <>>==
WRKUF =<<><
ESGBH =><=<
QTAKH <>=><
JGOSQ ><<<=
MYSQR =>>==
KLRPC =<=><
QRMKD =====
FCBZE >>>=<
BNXDB =><=>
NNRQD >====
BPVWI ==<=<
KXEYZ ===><
IJMLR ==<><
ZGHZX =<=><
NDLJA <=<<<
NOVNI ><<<<
JKSRM...

output:

12223 400459039 28986202 438885749 273376351 163951784 446281085 40534769 335228183 96236785 880355311 987490628 488442137 827131227 536678086 420675015 209408414 489894579 26613846 266498745 429205709 284226414 110233883 328154083 561800066 269995982 113946391 76900398 905441256 821243833 20626991 ...

result:

ok 100000 numbers

Test #16:

score: 0
Accepted
time: 7362ms
memory: 91372kb

input:

100000
UNCSX <<==<
FOYMG =<==<
WQXDL <=<>=
RKJSP <=>>=
LAXXT ><<==
IEMZF ==><=
DFSET >=><=
CWRSU <<>==
XBCYM ><=><
YFAWT >><=<
HTRNJ <<<>>
ZWKMT ===>=
QDLYL <<=<<
JOFQE ==<>>
SWETU <<><>
MYVMS =<>=<
DGRNR =<>><
CNXBA <<<>=
WDWYZ =<>>>
KPNNU >=>=<
QTGOB ==<><
JCHUK ><===
MLTEW =<>=>
DTMMV =<=>=
BSPZQ...

output:

12256 398686308 110275411 25618548 98398475 75789291 450067286 554959802 735917475 608870282 245681817 893103261 540261582 229311537 936917938 470322306 441117213 243813087 255324265 12696724 854288754 806520692 86012500 328564694 878537022 839751145 915142745 18140745 125518575 342802686 947890980 ...

result:

ok 100000 numbers

Test #17:

score: 0
Accepted
time: 7854ms
memory: 90836kb

input:

100000
FNVIO ><<=<
ISCUB ><><>
GQCGY ><>><
IIREF ><>>>
LAWQL >><<<
VDQNS <>><<
ZDJDH <>>>=
KAYMX >><<<
KQWNL ><<<<
MWVRW ><<<<
FETOJ >=><<
LEEOT >=><<
ZGJPH <<><=
VDPHC <>>>>
VJRWA <<><>
SCRPJ <>><<
JBQCF >>>>>
YWVGU <<<><
XGWNB <<<<>
BTAWV ><><<
RSMBD <<>>>
KFBJX ><><<
GPSZZ ><><<
WMSOJ <<><<
QLXDF...

output:

1 99999 17256472 629188600 994653422 292821735 911451747 83353224 313471011 405421054 346258483 928805941 779780412 28863579 29385371 263188556 923438024 483744622 815893954 359620773 119778186 363999506 944722253 608984733 934576938 654424456 495668524 619666932 294467430 975718913 171023568 124035...

result:

ok 100000 numbers

Test #18:

score: 0
Accepted
time: 7839ms
memory: 91388kb

input:

100000
LMPEM >>>><
TOLDK >>>><
JRYKL >=<><
WRTSU ==<=<
TZPGR <<<><
BHJXB >><<>
RABOA <>><>
TXPJU ><>><
YVFBJ <<=><
NHATH >>><<
CNZDF >><>=
VHJJY >>>><
DOUAS >><><
GMMQA >><<>
AMKPR >>>><
IKAET >>>><
MFRKW <><<<
SSMLJ <<<<<
YAMZX <><<<
CCXTO >><<<
QNAAD <>>>>
XDHLM <>>><
BKGQR >>>><
UXXOM ><<><
ANGIJ...

output:

0 933308107 299928578 143136372 376251907 975068160 721593698 753716245 898914068 490205891 886874629 146781702 587935621 279193639 699856836 561537033 880030199 518890130 56000918 362873285 264834282 611906519 200388605 960190510 691501587 606436430 881745603 751535317 348317466 237651997 812697060...

result:

ok 100000 numbers

Test #19:

score: 0
Accepted
time: 7857ms
memory: 86268kb

input:

100000
GKZXQ >><<<
KHLZG <><<>
XOPSL <><<<
BAIDJ >><<<
ARFUW >=<<<
SRWMZ ><<><
IXTCI ><<>>
CUFJQ ><<<<
POBFV ><>>=
XZCXW <<<<<
NYEWD ><><>
CWOQS ><<>>
VILXN >><<>
AYMDC ><<<>
MBCPI >>>>>
CFRWC >><<>
CXNGB ><<<>
QNFZL ><><>
PIGHX <><<<
UUKUR <<<<<
TUDZQ ><><>
GILEV >><>=
EGTTE >><<>
RSKCL ><<>>
LYCDJ...

output:

0 166507515 459156293 304072419 460723604 974806918 569354203 431542442 512958995 436405304 696400930 642914783 541251712 836652606 565059619 514610302 346747578 937985955 592127812 100884846 134893017 448171682 583736771 651700927 454623153 163064670 98018215 70402567 66918097 107584460 749714113 1...

result:

ok 100000 numbers

Test #20:

score: 0
Accepted
time: 7894ms
memory: 89920kb

input:

100000
BILQU ><><<
EBKTE >><<>
NKHCI <<>>>
GKVMX >><<<
GIWIC ><<<>
MAJDU >>=><
YULTQ <<><<
KUVIK ><<>>
FHYGI >><>>
JOFAK >=>>>
WHJPB <=><>
MOSVM >=<<>
MDBWH <>><>
VLLQC <<><>
YQTQA <<<<>
VZJNK <<><=
TNHBE <>>>>
OHYMP >><<>
FQAOU ><><<
LNWSW >><<<
VBFVF <>><>
OMQUC >><<>
HCIUP >>><>
MMZQH >><<>
YJZWL...

output:

0 38401793 447045659 902564881 855486954 858682963 916341122 319325485 19812241 668526803 143151417 331148639 425925192 804865129 333676787 704794449 910479352 696417420 82040052 29985024 973090487 9476047 487918272 830170804 447737654 497561219 593481691 928465739 179957021 384533495 178611683 4766...

result:

ok 100000 numbers

Test #21:

score: 0
Accepted
time: 7829ms
memory: 90972kb

input:

100000
KSHEU ><><<
LUTYV ><<<<
MXQOI ><<>>
NNMHY ><><<
NZIPQ ><><<
XMKMH <><>>
DDFVV >>><<
TMRIN <<><<
YDSBB ==<>>
GEIFO >><><
JRWVV ><<<<
LXVTF ><<>>
KFCQQ >>><<
TVKCO ><<><
OHAGB >>><=
PEVCO ><<><
LYCEB ><>>>
NNNTN ><<><
EYYBZ ><<><
MPCCW ><>><
HTJKP ><><<
LQQDT ><<><
WBTLI >><>=
JRYTE ><<>>
POITD...

output:

0 964094440 836003257 708459847 871957496 654344326 948234133 953935212 104979316 364845725 665219506 642340940 870161743 128194009 326925049 353939789 704216254 589740748 620536805 305640004 484148956 831968196 6769193 754098116 546127667 437282971 570088555 466566847 739533250 638265014 473500063 ...

result:

ok 100000 numbers

Test #22:

score: 0
Accepted
time: 7884ms
memory: 89904kb

input:

100000
IMBCQ <<>>>
SLSQD <<<=>
AEBES >>>><
HTEYK ><><>
BRSCG ><<>>
LDIEX <<><<
BMEJV ><<><
LCKFQ <><>>
IPIDE =<>=>
IPSKI ><>>>
IYLZC =<><>
EOQKE ><>>>
EAOOD >>=<>
XGZUO <><<=
RAVYT <><<<
EVMYK ><><>
GWXYP <<<<>
UEVNV <><=<
AQQOY ><><<
NRJDS <<<>=
HCNOG <><>>
SULRW <<><<
FXNYW ><><<
NEJQZ <><=<
LYWGI...

output:

0 666826810 289231209 635258529 546720275 543561692 384443596 63424828 510070428 21542771 129058559 151021435 187384460 692633074 922852987 414682697 568116010 769155697 91852932 392144234 495241700 671207649 143169942 467816836 792533501 612880812 687987052 299606463 754344297 139546526 882788940 4...

result:

ok 100000 numbers

Test #23:

score: 0
Accepted
time: 7836ms
memory: 91008kb

input:

100000
FNFJC >=>>>
JBTYS >>=<<
QVCYB <<><>
TTGOO <>>>>
CNNNE >=<<=
HCQEM >>><<
KTESX ><><<
RLPVL <>><>
CQADI ><><<
NCZRF <><<>
NTWBK <><>>
OJUNY <>><<
MHIDY >>>><
LFECL >>>><
ENNVS >=<<<
YYXYK <<<<>
BALXT >>><>
JVXBJ ><<><
PTDBE ><>>>
RCFNT <>><>
ZPWFG <<=>>
MSVDA ><<<>
YJXSV <><<<
DOVKD ><<>>
DXSPO...

output:

0 93009970 219804152 844567284 891926848 279947250 689135271 860615218 13010915 929722006 847603974 484303861 136418364 827768488 46032089 429102220 810639676 270957951 53183964 293737892 477650398 234505706 517796197 156812171 966975447 945982240 982711670 726121039 576777787 297259995 372223803 55...

result:

ok 100000 numbers

Test #24:

score: 0
Accepted
time: 7855ms
memory: 89540kb

input:

100000
TPOQJ <<<<>
XUUDN <<<><
YFAGQ <>>><
VWSWT <<<<>
GITXC <><<<
AYRDP ><>><
ZOXOZ <=>>=
OQEEJ >>>>>
LMMFK <>>><
YQMTZ <>=<<
BAWDI >><>>
TQUIE <><>>
LQFOZ ><<<=
XYJNB ><>>>
ANPKA ><<>>
XNAGO <>>>>
AARCV >>>=>
IMBOU <>><<
ECQGU =><><
EWFDL <<<>>
AFWTZ >>><<
FKLNJ =><><
CEPMR >><<=
DPBFC ><><>
YIHUM...

output:

0 731820826 161250844 5585597 470134782 556060811 257099719 111798459 512206035 622445488 559050664 46611111 378388720 149248369 900197806 243792137 756773235 70170364 529089164 538199381 933788591 643539872 670120393 985010776 935645389 262590905 309790899 412774006 752230002 629492948 403174711 17...

result:

ok 100000 numbers

Test #25:

score: 0
Accepted
time: 7829ms
memory: 91228kb

input:

100000
QBQZL <><<>
DLOQX ><<<<
QFGSH >>>>>
GXSNZ ><<<<
RDDUT <>>=<
WXVWY <<<=<
VCCQL <>>=>
YSTQR <<>=<
DFUIN =><><
GEGVJ <>><<
SDHHM >><>>
HQFRU >><><
ZHMPJ <<=>>
TVMYN ><><<
RCXHI <><>>
CIYCA >><<>
KVATT <<>><
GUWBK <<<>>
EUUKP ><<>>
BHKJW >><<<
XAIMU <>><>
LBYQV >><>=
FKLSD >>><>
VUQIB <<<<>
ATMAS...

output:

0 646701422 310542475 455998428 727671893 716649694 854302830 116778947 413591563 630505272 957959940 707160196 798797072 884778819 315551957 165825483 211983439 44654126 489986563 445117918 290339951 363429453 357974679 236558197 5060958 200582726 105877545 962523756 472161796 650269082 123320504 8...

result:

ok 100000 numbers

Test #26:

score: 0
Accepted
time: 7459ms
memory: 81256kb

input:

1
ZZZZZ =>=>>

output:

1 

result:

ok 1 number(s): "1"