QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#172298#7186. "Memo" Game With a Hintucup-team206#AC ✓3ms3604kbC++172.7kb2023-09-09 18:40:312023-09-09 18:40:32

Judging History

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

  • [2023-09-09 18:40:32]
  • 评测
  • 测评结果:AC
  • 用时:3ms
  • 内存:3604kb
  • [2023-09-09 18:40:31]
  • 提交

answer

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

int T,n=50;

string as;

string guess(int x)
{
    string ret;
    cout<<x+1<<endl;
    cin>>ret;
    // ret=as[x];
    return ret;
}

int main()
{
    srand(time(NULL));
    string game;
    cin>>game;
    if(game=="prepare")
    {
        cin>>T;
        while(T--)
        {
            string s;
            cin>>s;
            vector<int> v;
            vector<int> vis(s.size());
            for(int i=0;i<n;i++)
            {
                if(vis[i])
                    continue;
                if(v.size()==8)
                    break;
                for(int j=i+1;j<n;j++)
                    if(s[j]==s[i])
                    {
                        vis[j]=vis[i]=1;
                        v.push_back(j);
                        break;
                    }
            }
            long long ans=0;
            for(int i=0;i<v.size();i++)
                ans=ans*50+v[i];
            for(int i=0;i<50;i++)
                cout<<(ans>>i&1);
            cout<<endl;
        }
    }
    else
    {
        cin>>T;
        while(T--)
        {
            vector<int> vis(50);
            string s;
            cin>>s;
            // cin>>as;
            vector<int> p;
            long long ans=0;
            for(int i=(int)s.size()-1;i>=0;i--)
                ans=ans*2+s[i]-'0';
            for(int i=0;i<8;i++)
            {
                p.push_back(ans%50);
                ans/=50;
            }
            for(int i=0;i<n;i++)
            {
                if(vis[i])
                    continue;
                guess(i);
                guess(p.back());
                vis[i]=vis[p.back()]=1;
                p.pop_back();
                if(!p.size())
                    break;
            }
            map<char,int>pos;
            vector<int> t;
            for(int i=0;i<n;i++)
                if(!vis[i])
                    t.push_back(i);
            random_shuffle(t.begin(),t.end());
            for(int i=0,j;i<t.size();i=j+1)
            {
                string r=guess(t[i]);
                if(pos.count(r[0]))
                    guess(pos[r[0]]),j=i;
                else
                {
                    pos[r[0]]=t[i];
                    auto rr=guess(t[i+1]);
                    if(pos.count(rr[0]))
                    {
                        if(pos[rr[0]]!=t[i])
                        {
                            guess(t[i+1]);
                            guess(pos[rr[0]]);
                        }
                    }
                    else
                        pos[rr[0]]=t[i+1];
                    j=i+1;
                }
            }
        }
    }
}

詳細信息

Test #1:

score: 100
Accepted
time: 1ms
memory: 3564kb

First Run Input

prepare
2
ABCDEFGHIJKLMNOPQRSTUVWXYABCDEFGHIJKLMNOPQRSTUVWXY
AABBCCDDEEFFGGHHIIJJKKLLMMNNOOPPQQRRSSTTUUVVWWXXYY

First Run Output

01110110001111011101010010001000001001000100100000
10111011111011011110011111110100100000110000000000

Second Run Input

play
2
01110110001111011101010010001000001001000100100000
A.
A+
B.
B+
C.
C+
D.
D+
E.
E+
F.
F+
G.
G+
H.
H+
V.
P-
I.
X-
R.
N-
Y.
K-
U.
S-
R.
R+
O.
J-
V.
V+
T.
Q-
L.
M-
U.
U+
X.
X+
S.
S+
L.
L+
Q.
Q+
J.
J+
O.
O+
K.
K+
M.
M+
N.
N+
T.
T+
W.
Y-
Y.
Y+
I.
I+
W.
W+
P.
P!
10111011111011011110011111110100100000...

Second Run Output

1
26
2
27
3
28
4
29
5
30
6
31
7
32
8
33
47
41
9
49
18
14
25
11
46
19
43
18
15
35
22
47
20
42
12
38
21
46
24
49
44
19
37
12
17
42
10
35
40
15
36
11
13
38
39
14
45
20
23
50
50
25
34
9
48
23
16
41
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
42
48
50
49
36
40
22
38
44
19
28
21
21
22
26
33
25
26
34
33
32
45
2...

result:

ok Correct! The number of the misses is 19 (2 test cases)

Test #2:

score: 100
Accepted
time: 1ms
memory: 3512kb

First Run Input

prepare
1
FNETFOMMJTYCXKCRYLGXKSPAIVQNBURJAPQHUDWSDWVIHGELBO

First Run Output

01001010110110010100001101110100101111001100000000

Second Run Input

play
1
01001010110110010100001101110100101111001100000000
F.
F+
N.
N+
E.
E+
T.
T+
O.
O+
M.
M+
J.
J+
Y.
Y+
H.
W-
C.
L-
S.
L-
L.
L+
U.
K-
I.
P-
D.
G-
A.
V-
A.
A+
S.
S+
C.
C+
H.
H+
I.
I+
B.
W-
W.
W+
Q.
K-
K.
K+
X.
D-
D.
D+
P.
P+
R.
U-
U.
U+
V.
V+
Q.
Q+
B.
B+
R.
R+
G.
G+
X.
X!

Second Run Output

1
5
2
28
3
47
4
10
6
50
7
8
9
32
11
17
45
39
12
48
22
18
18
48
30
14
44
23
41
19
33
26
24
33
40
22
15
12
36
45
25
44
29
42
42
39
35
21
21
14
13
38
38
41
34
23
16
37
37
30
43
26
27
35
49
29
31
16
46
19
20
13

result:

ok Correct! The number of the misses is 11 (1 test case)

Test #3:

score: 100
Accepted
time: 2ms
memory: 3592kb

First Run Input

prepare
50
FDAVHJWICNELMBTQGPMHCYSTUUKWOYBJNRLGEFXXSIVOAQDRKP
NPBEHYAERLSHAKCMGTQFUYXDVUIWDPBSOXCMFRJOJTNKIGLQWV
AEFGFISMPACJJYRBXUCKNOPEHODITLXWSMGVWBDQKLUQHRYVTN
CKFXOIQOLCSHAGDEUJTYBAVKWPMHDBJNRMFXTEYQUGVNPILWRS
JYIRTLMHQGUUAEDJXTSDCKPCXWPBAWHQRMGNLONVOYEKFVBIFS
IHDCXSWTUHOFXLGLGWJPACUVTBOESDMYAK...

First Run Output

11000101110011001010111101111011001011110101100000
10011000110101101111110011001110110000100111100000
00000001110001010010111101011000100111010110000000
00010111100000011001111110010010110111010110000000
00010001101110001110010111011000100000101101000000
010101110110010111100011101010100011100000000...

Second Run Input

play
50
11000101110011001010111101111011001011110101100000
F.
F+
D.
D+
A.
A+
V.
V+
H.
H+
J.
J+
W.
W+
I.
I+
Q.
G-
C.
K-
P.
B-
U.
E-
O.
M-
X.
T-
O.
O+
S.
C-
C.
C+
E.
E+
L.
N-
Y.
U-
U.
U+
X.
X+
B.
B+
G.
G+
N.
N+
L.
L+
Y.
Y+
M.
M+
R.
S-
S.
S+
T.
T+
P.
P+
K.
K+
R.
R+
Q.
Q!
1001100011010110111111001100111...

Second Run Output

1
38
2
47
3
45
4
43
5
20
6
32
7
28
8
42
46
36
9
49
18
14
26
11
44
19
39
15
29
44
23
21
21
9
37
11
12
33
22
25
25
26
40
39
31
14
17
36
10
33
35
12
30
22
13
19
34
41
41
23
24
15
50
18
27
49
48
34
16
46
1
43
2
30
3
31
4
8
5
12
6
22
7
13
9
38
41
48
50
49
34
39
39
41
17
36
44
14
24
16
16
36
21
29
29
24
2...

result:

ok Correct! The number of the misses is 493 (50 test cases)

Test #4:

score: 100
Accepted
time: 2ms
memory: 3564kb

First Run Input

prepare
75
EAHSMUJLVDPNLEKPCNIICFRTMHYWVSTQBBWRXKFDXOJQUAGGOY
CUWYVQJPSRIDKXMKTFXTFDOJVWLBEMNULIAAPYCHNGHEOGSRQB
UJTQMFLPJRGSECWAHXDCIVRQOIEPANHUBYVGFKMKLDTSWYBNOX
EYOUSDBNEQXIPMFUJCYKJVLSVWOXKLCFWARPBTIHGTMNDRGHAQ
PBHANSDUVHNKYRQVMOBLQAXSEXOLYJRGTWCFKGMWPJIFTIEDCU
YREKISUWLRFFQDIWNUASLJXGMVHBXDMBJT...

First Run Output

00000110000101110110101110000010010001111001000000
01001010100000111010000111110011010011101101100000
11011010011101001011110111110000111001000110100000
11010000000010111100011101101001010011111010000000
11011101001101010111111000000100011101010011100000
101111001000000001100000101101101100101100000...

Second Run Input

play
75
00000110000101110110101110000010010001111001000000
E.
E+
A.
A+
H.
H+
S.
S+
M.
M+
U.
U+
J.
J+
L.
L+
I.
T-
Q.
V-
Y.
G-
G.
G+
D.
K-
O.
B-
B.
B+
R.
N-
Q.
Q+
C.
K-
K.
K+
F.
C-
C.
C+
V.
V+
D.
D+
R.
R+
P.
W-
I.
I+
Y.
Y+
F.
F+
O.
O+
W.
W+
N.
N+
T.
T+
P.
P+
X.
X!
0100101010000011101000011111001101001...

Second Run Output

1
14
2
46
3
26
4
30
5
25
6
45
7
43
8
13
20
24
44
29
27
48
47
48
10
38
49
33
34
33
23
12
32
44
17
15
15
38
39
21
21
17
9
29
40
10
36
23
11
35
19
20
50
27
22
39
42
49
28
35
18
12
31
24
16
11
37
41
1
39
2
32
3
26
4
38
5
25
6
49
7
24
8
37
15
33
44
31
42
21
46
42
41
31
14
20
27
33
43
22
19
14
35
18
18
21...

result:

ok Correct! The number of the misses is 747 (75 test cases)

Test #5:

score: 100
Accepted
time: 2ms
memory: 3548kb

First Run Input

prepare
85
RSHXLIARGTANBOIMVCQUCBGQWEDTPMYJWYUFPKESKJODLNFVXH
GEFNCRFLXMNOJGIQPLMSBKHDVIUVCHRAAUYWQBPTWYXSJOTEDK
PNCEFQSMQNOUJPKTWEAHFSRKGCIVJXXLRHLYBWGODVBYDUTAIM
EBFQNGFUKBOYENJSUTTPKPVSIRADCMVRHAHMDCLGLXQXIOJYWW
OSYHICRXEQAMWBDUDWANLLNCVBTXMTGEPJYPGFSKIJFHUKRQOV
SESXRAXOUIGPVJUNLMJFYEBVFCOBDQHKGW...

First Run Output

01000001001010011100011011110011010100011010000000
00101111100110000001000111111000000101111001000000
11011111100001010001110110100010111110101001000000
00011010100001010010111101100000000101010001000000
11000110101111100111000001110111111001010100010000
000011101110101111100100010011010001110110000...

Second Run Input

play
85
01000001001010011100011011110011010100011010000000
R.
R+
S.
S+
H.
H+
X.
X+
L.
L+
I.
I+
A.
A+
G.
G+
C.
E-
O.
P-
D.
N-
D.
D+
N.
N+
P.
P+
F.
J-
W.
W+
O.
O+
Y.
C-
C.
C+
M.
K-
B.
T-
E.
E+
U.
B-
B.
B+
Y.
Y+
U.
U+
V.
Q-
J.
J+
T.
T+
Q.
Q+
M.
M+
V.
V+
F.
F+
K.
K!
0010111110011000000100011111100000010...

Second Run Output

1
8
2
40
3
50
4
49
5
45
6
15
7
11
9
23
21
26
43
29
27
46
44
27
12
46
37
29
47
32
33
25
14
43
31
18
18
21
16
38
22
10
39
26
35
13
13
22
34
31
20
35
48
24
42
32
28
10
19
24
30
16
17
48
36
47
41
38
1
14
2
48
3
7
4
11
5
29
6
31
8
18
9
43
19
35
44
34
41
25
46
40
17
24
28
25
42
35
26
23
37
22
50
22
45
39
...

result:

ok Correct! The number of the misses is 851 (85 test cases)

Test #6:

score: 100
Accepted
time: 1ms
memory: 3552kb

First Run Input

prepare
90
HPBUYCSIRIQTEVJLTDYGMNBEKMSFHNCRXVDAUFQAWPLGJWKOXO
DGTONCNKSQVCREJMUPOGFWIQPALERLASDYBFVIWKXHTMXBJUHY
KODTYFIXXRTNWNCUSLOREEBCUJPABHIDVGLGJMYKWMSQHAPQVF
BGTFHKOEJPGLWJIHPWAYVDKIFXSUUQYTENNVCMDRMOASRBXCLQ
YSJXTDDMCLKFFBOWVRCSHNPTGARXJQPBKMYWUEAUNGEIIQVHOL
QTXVHWNRFUOHCPMGWMLFRSCQKGEIPKEADY...

First Run Output

10100110010001101001010011011111110111100010100000
10011111101101011111001000011111001000001110100000
00011001001111001100001000001011100111111101100000
01001001011010010111111011111000000001000000010000
00100001001101110110001011000011111101100001100000
000110101010001000000100011101011011101100001...

Second Run Input

play
90
10100110010001101001010011011111110111100010100000
H.
H+
P.
P+
B.
B+
U.
U+
Y.
Y+
C.
C+
S.
S+
I.
I+
W.
J-
X.
J-
J.
J+
Q.
G-
M.
D-
Q.
Q+
A.
N-
N.
N+
R.
O-
O.
O+
E.
W-
W.
W+
G.
G+
T.
M-
M.
M+
A.
A+
F.
V-
T.
T+
K.
L-
D.
D+
V.
V+
R.
R+
F.
F+
E.
E+
X.
X+
K.
K+
L.
L!
1001111110110101111100100001111...

Second Run Output

1
29
2
42
3
23
4
37
5
19
6
31
7
27
8
10
41
15
49
45
45
15
11
44
21
35
39
11
36
22
30
22
32
50
48
50
24
46
46
41
20
44
17
26
26
21
40
36
28
34
12
17
25
16
18
35
14
34
9
32
38
28
13
24
33
49
47
25
43
16
1
33
2
20
3
43
4
19
5
7
6
12
8
40
9
32
39
25
42
11
34
10
45
41
47
38
22
39
49
42
24
10
18
25
31
50
...

result:

ok Correct! The number of the misses is 898 (90 test cases)

Test #7:

score: 100
Accepted
time: 2ms
memory: 3560kb

First Run Input

prepare
95
CXKFQPTEDJGCNSIWIDLVHJBTMEUMLQVYOHGPKNRYOFXRSBUWAA
DKGIBMTPLXOCTJEVQYVUMAFHNXEOCRDPNQHSUGSWAJRIFYBWKL
QHTADVKMABFWXHRLNICEGJOCPXWTYNVMBESJURIODUGFLYSKQP
WPTDMLIIEOWCKYSSREBDBFXNQGVNXAPVJHYLUKUCGHQRAFJMOT
PUYIWXOSXDQNITNCYWFEKGHPLKVJABJQTUSVRMLCEDFMGAOBHR
YFMQKSXVBUIYLCBRDWWNVFHTTMRHUDOGLA...

First Run Output

11011001111101110100000010111010001101100001000000
11100000010000011100011100011010010000000110100000
10100101100010111000100111010110001100100100010000
11000010100110000001100010011101110100011110000000
01100001010011000101110010010111000010110000100000
010010001001111101110000101101001111100000010...

Second Run Input

play
95
11011001111101110100000010111010001101100001000000
C.
C+
X.
X+
K.
K+
F.
F+
Q.
Q+
P.
P+
T.
T+
E.
E+
A.
V-
Y.
H-
I.
I+
H.
H+
O.
V-
V.
V+
R.
G-
B.
N-
J.
Y-
Y.
Y+
O.
O+
B.
B+
U.
N-
N.
N+
J.
J+
S.
D-
W.
A-
A.
A+
G.
G+
M.
D-
D.
D+
R.
R+
W.
W+
M.
M+
L.
U-
U.
U+
S.
S+
L.
L!
1110000001000001110001110...

Second Run Output

1
12
2
43
3
37
4
42
5
30
6
36
7
24
8
26
50
20
32
34
17
15
21
34
41
31
31
20
39
35
23
13
10
40
40
32
33
41
46
23
47
38
38
13
22
10
45
9
48
49
49
50
11
35
28
18
18
9
44
39
16
48
25
28
19
27
27
47
14
45
29
19
1
31
2
49
3
38
4
44
5
47
6
21
7
13
8
32
28
34
14
9
20
18
42
14
41
26
12
24
36
10
10
26
22
41
4...

result:

ok Correct! The number of the misses is 955 (95 test cases)

Test #8:

score: 100
Accepted
time: 2ms
memory: 3556kb

First Run Input

prepare
100
NKXFSXFWWAOBPEJOTMVHIPUKCGQSRLCRHYNVDMETALGIJQUDBY
LQEXDPFVMOMABELGPHCWBJTVCTNYXGRYWJUQKFIHOSNSKAIURD
MBTKVSCAPAXWHBEHUSQOGYJIUVTNEIRPFYQXJORNLFDCMKWDGL
EBBOJXCXNECGAQQALWPPMJVTGSHIORNMHRDFSYUYLFIUVDKWKT
GKOAHWLYQXVKCLRRTCYMFBSQUPDIWIJPVGDFMNAUTSJXHBEEON
EQEDVJGKUIXMCYQTANIHSADKWRNFYBGOT...

First Run Output

11101010000011011011101000111001001111100001100000
10011110110110110001000011100111010011100101000000
11010011001110001001100001110011001011101111100000
00100110100001010001110011110110011101100110000000
00110000000011010101101011011100011110011110100000
101000100101001100011110100001100000010110000...

Second Run Input

play
100
11101010000011011011101000111001001111100001100000
N.
N+
K.
K+
X.
X+
F.
F+
S.
S+
W.
W+
A.
A+
O.
O+
R.
V-
B.
V-
V.
V+
Y.
J-
P.
D-
D.
D+
E.
B-
B.
B+
M.
J-
J.
J+
Y.
Y+
T.
L-
I.
C-
U.
M-
M.
M+
I.
I+
G.
H-
Q.
P-
P.
P+
E.
E+
G.
G+
L.
L+
U.
U+
R.
R+
H.
H+
Q.
Q+
C.
C+
T.
T!
100111101101101100010000...

Second Run Output

1
35
2
24
3
6
4
7
5
28
8
9
10
41
11
16
29
19
49
36
36
19
34
45
22
48
37
48
14
12
12
49
38
15
15
45
50
34
40
42
21
25
47
18
18
38
44
21
26
20
27
13
13
22
39
14
43
26
30
42
23
47
32
29
33
20
46
27
31
25
17
40
1
15
2
36
3
14
4
29
5
50
6
17
7
38
8
24
9
28
46
18
27
33
37
16
49
42
35
12
12
46
21
19
20
33
...

result:

ok Correct! The number of the misses is 972 (100 test cases)

Test #9:

score: 100
Accepted
time: 1ms
memory: 3528kb

First Run Input

prepare
100
BULRJTVXIHFVSKOMPWMCGENUNYAKIQQXSPBADERWHJCYFDOLGT
FIHEGHKMALOKAVTSYYWTMQJCERQNBLFIOPSBDUCXVNRWJXUGPD
IGMAXBJVQJGTTPKQCFEEUWRSONNSHBRKUPWHCDDYLXFYVLOIMA
FKYUXTNHQBVLPWEOPREKVIMHCOJLXNDGBFUGIRSASJYADMWTCQ
RYIDFMJOWUBQNXLWNCRSSGKTXOHPVKTEPAAFMEILQVBUHJDGCY
SOVMPWQBMWNURDEALASGVNHCYUTOGKTKY...

First Run Output

10001010001100101010110101101101111111100001100000
00011110001110101001001010100100010000111010100000
01011101101010110001011110001100101100011000010000
10111100111010111000100100100111010111011110100000
11010100100000110010101001100010111111101011000000
100011101010000100010011111110111011010010110...

Second Run Input

play
100
10001010001100101010110101101101111111100001100000
B.
B+
U.
U+
L.
L+
R.
R+
J.
J+
T.
T+
V.
V+
X.
X+
G.
S-
I.
P-
E.
A-
K.
M-
W.
Q-
P.
P+
F.
O-
H.
Q-
Q.
Q+
M.
M+
N.
K-
K.
K+
I.
I+
D.
Y-
H.
H+
F.
F+
A.
A+
O.
O+
C.
S-
S.
S+
G.
G+
Y.
Y+
E.
E+
N.
N+
W.
W+
D.
D+
C.
C!
000111100011101010010010101001...

Second Run Output

1
35
2
24
3
48
4
39
5
42
6
50
7
12
8
32
21
13
9
17
38
36
14
19
40
31
34
17
11
47
10
30
30
31
16
19
23
28
28
14
29
9
37
44
41
10
45
11
27
36
15
47
43
33
33
13
49
21
26
44
22
38
25
23
18
40
46
37
20
43
1
31
2
32
3
6
4
25
5
48
7
12
8
21
9
13
45
40
36
43
20
26
26
43
49
27
17
38
14
50
35
44
22
27
18
17
1...

result:

ok Correct! The number of the misses is 1013 (100 test cases)

Test #10:

score: 100
Accepted
time: 2ms
memory: 3524kb

First Run Input

prepare
100
SQROXGJWGXFMMKUNTEIRNLEVAYLHDHQPPBCSJIWFUYVCTADBKO
PKYCKEOOYJVXPWFGVDJBEULHWQTCAHLMAMURBFQGTIXSRISNND
UOOAMTVCCXBSEKWXPGWSRBNYNLIHJYJITFADEHKPRFDMQQVUGL
YEFEDNPRNSWMCWBAKSQQRBGLXKOILXTDAGJUVYUMVHHCJIFOTP
AVXANGTWWEBDESYBMQHOVRXCLFKDIGJSTJPQFYRCHIKMNLOPUU
OJNYRXLJHGGWFMDDMOPKYTHTUAKLNICIE...

First Run Output

01100010101110100001011001110000101100101001100000
00000010100110000111000001101111101010010001000000
11100011011000100100001000001000111101101000010000
10110101110011011001010010001001000110100101100000
00100010001010101101110011111000001101100100000000
000010011010010100001101000010111111010000110...

Second Run Input

play
100
01100010101110100001011001110000101100101001100000
S.
S+
Q.
Q+
R.
R+
O.
O+
X.
X+
G.
G+
J.
J+
W.
W+
K.
H-
T.
T+
D.
Y-
N.
E-
A.
U-
B.
L-
P.
B-
B.
B+
H.
H+
M.
I-
M.
M+
C.
U-
U.
U+
F.
V-
Y.
Y+
C.
C+
L.
L+
N.
N+
F.
F+
I.
I+
P.
P+
K.
K+
V.
V+
E.
E+
A.
A+
D.
D!
000000101001100001110000011011111010...

Second Run Output

1
36
2
31
3
20
4
50
5
10
6
9
7
37
8
39
14
30
45
17
29
26
16
18
25
15
34
27
32
48
48
34
28
30
12
19
13
12
35
41
41
15
40
43
42
26
44
35
22
27
21
16
11
40
38
19
33
32
49
14
24
43
23
18
46
25
47
29
1
13
2
5
3
9
4
28
6
21
7
8
10
19
11
17
22
33
46
47
29
33
44
47
35
22
20
41
39
36
43
30
42
46
48
25
32
14
...

result:

ok Correct! The number of the misses is 995 (100 test cases)

Test #11:

score: 100
Accepted
time: 2ms
memory: 3516kb

First Run Input

prepare
100
RGFVPILWOVETBGSLKHKNCHJIOXAMPXNQSWJYUDRBMDAEYFQCTU
OLRHQVCXUYKWSEJPDYTFGKNVCASHMIDPNERUBOQJMBTGAXLIFW
KXYEEFLNYOGBNIUVVDTCRJDSHQISRAUWAQCTWLMPBHMJKXGFPO
BUXYMYPJMVFQKCIDQHEUOTITPKHLORXVGLASAGWDCJSBWNEFRN
TXKFEIVQISUBKTHXRDJCNOMPMGHNDCLPAWVBWUAEQSJRFYGOYL
PSRXNYTOKJMUFUTIRVMKBDXLJBCLFVGHA...

First Run Output

11011111001001001110101110111101010011001101100000
10011000000101110111110011111000001011110101100000
10101001111010011001000001011011111001111111100000
10001000110000100100011011101111001010110111100000
00100110010011100110110110001100001011101001000000
111011011100011000111010000101111001101111111...

Second Run Input

play
100
11011111001001001110101110111101010011001101100000
R.
R+
G.
G+
F.
F+
V.
V+
P.
P+
I.
I+
L.
L+
W.
W+
J.
A-
M.
T-
B.
Q-
A.
A+
N.
D-
H.
E-
K.
U-
T.
T+
C.
X-
Y.
M-
M.
M+
Y.
Y+
S.
H-
H.
H+
O.
D-
D.
D+
S.
S+
E.
E+
C.
C+
B.
B+
Q.
Q+
X.
X+
K.
K+
U.
U+
J.
J+
N.
N+
O.
O!
100110000001011101111100111110...

Second Run Output

1
39
2
14
3
46
4
10
5
29
6
24
7
16
8
34
23
43
41
12
40
47
27
43
20
38
18
11
19
50
49
12
21
26
45
28
28
41
36
45
15
22
22
18
25
42
42
38
33
15
44
11
48
21
13
40
32
47
30
26
17
19
37
50
35
23
31
20
9
25
1
38
2
47
3
35
4
28
5
39
6
24
7
25
8
46
17
37
10
36
42
37
50
29
44
9
9
36
43
12
12
50
23
22
41
29
1...

result:

ok Correct! The number of the misses is 996 (100 test cases)

Test #12:

score: 100
Accepted
time: 0ms
memory: 3552kb

First Run Input

prepare
100
VJXSDLHVPDTYCWKILGXUIJANAHYSMUWBRRQTCENEPFFOKBGMOQ
BVAFIMQXPHKTKJWSLITNXOEVCFYCOQADGSGDWUPLHNBJRUEMYR
RLPSNKYDCLUMVDTHJYIHWQSGRBNXUFOFAAGEQTKCPVJEWBMOIX
IBFYNHNRSYOHXPGGKBFCSUMOJLUPKVAQMTCLDWREWQDTAVXIEJ
KGRTAINBFADUHILYMBEOPECVXQPDOWWTJSKMGQSVRUHLCNFXYJ
ETFGMNTHGOKBXNMELFBWCARUHICYJRWSX...

First Run Output

01000001000000100010100001010000111000101010000000
01001001100000001000100001100101101101000111100000
11100110010001000100111001000010100011001000100000
00110100111110011010110011010110001001011000010000
11100010101000100101010100111110011101010001100000
111010100110001001011001111100011111110101010...

Second Run Input

play
100
01000001000000100010100001010000111000101010000000
V.
V+
J.
J+
X.
X+
S.
S+
D.
D+
L.
L+
H.
H+
P.
P+
F.
C-
M.
W-
A.
Y-
O.
B-
B.
B+
R.
N-
C.
C+
E.
Q-
T.
T+
Q.
Q+
N.
N+
U.
W-
W.
W+
Y.
Y+
R.
R+
E.
E+
U.
U+
A.
A+
F.
F+
K.
K+
M.
M+
G.
I-
G.
G+
O.
O+
I.
I!
010010011000000010001000011001011011010001...

Second Run Output

1
8
2
22
3
19
4
28
5
10
6
17
7
26
9
41
43
37
29
14
23
27
49
46
32
46
34
24
13
37
38
35
11
36
50
35
39
24
30
31
31
14
12
27
33
34
40
38
20
30
25
23
42
43
15
45
48
29
18
21
47
18
44
49
16
21
1
43
2
24
3
31
4
26
5
18
6
48
7
30
8
21
38
42
23
13
20
42
36
15
19
39
41
25
32
36
12
19
46
38
50
45
49
17
16
28...

result:

ok Correct! The number of the misses is 988 (100 test cases)

Test #13:

score: 100
Accepted
time: 0ms
memory: 3524kb

First Run Input

prepare
100
MOHGEABJDDXQJMYVSPKBWONVTCPLWSQRFEKUNUHTLCXYIAFIGR
LOFDRVYTQJXQHRTKMBHCEVSAUUIFAEXLMOGIKPBYNWNWCJPGSD
EJBMJEYAAUDIPOTXILRCUQSDNKVPRYFCKMLSQGWFTVXOHNBHWG
MHKMCDGVOQRWJBFSKLSGTYUDWOIAIUPCYTQPNEHBNJRAFXXVEL
AVRXEJCFQXWBYTQRSWYHOBUPUNGSDMHILCNLFKJKMDGEOITAPV
IRLQBTAYITACMJROOJHYNHSPBQLNEVWGX...

First Run Output

01111111100000001100011011010111110100011001000000
00011001100001101110011100101111000000010110100000
11101001100011110100001010001110111110011100000000
11011100011010111100011001100100101101010100000000
01101111010001010111011110111001000110000100010000
110111110001110111001010101100000010011110100...

Second Run Input

play
100
01111111100000001100011011010111110100011001000000
M.
M+
O.
O+
H.
H+
G.
G+
E.
E+
A.
A+
B.
B+
J.
J+
P.
D-
D.
D+
V.
Y-
U.
U+
C.
N-
V.
V+
T.
K-
X.
C-
C.
C+
W.
L-
S.
X-
X.
X+
I.
F-
W.
W+
Q.
R-
P.
P+
R.
R+
T.
T+
Q.
Q+
I.
I+
Y.
Y+
L.
L+
K.
K+
F.
F+
S.
S+
N.
N!
000110011000011011100111001011110000...

Second Run Output

1
14
2
22
3
39
4
49
5
34
6
46
7
20
8
13
27
9
10
9
16
44
38
36
42
23
24
16
25
19
11
26
26
42
21
41
30
43
43
11
45
33
29
21
31
32
18
27
50
32
40
25
12
31
48
45
15
44
28
41
35
19
47
33
17
30
37
23
1
32
2
34
3
28
4
50
5
14
6
22
7
40
8
15
41
45
9
19
18
38
37
47
47
38
17
36
11
10
21
46
46
10
13
19
48
49
2...

result:

ok Correct! The number of the misses is 966 (100 test cases)

Test #14:

score: 100
Accepted
time: 1ms
memory: 3548kb

First Run Input

prepare
100
KVKFHJETMUGYIINCNCXOSBTFLAAQERRDPVHJUXWDPQYWOMLSBG
RKGEAFBUDOEJVNHJBSTOAHIWMWKFCPCYYVITXGXQUDLQSNLRMP
VFSDMWJQNEGIOKCAQFCUJHRBPLWLMUPOASHKYETNTXGDXRVBIY
AUELFVXFMCRTRVDAOJQWJKMQLEUKWSHXGIYHNNBOPBTPGCYSDI
MGTWHRVJKOPGAYSEXKCJIQRYPDXNBTEFBOWACHSLINLUVUDQFM
CAVGCIHTJQXHKTPQOLADBJDMGUWYENMLV...

First Run Output

10000000111001111011110011001001101001111000000000
00101011011100010111111011010001011000111000010000
00001011000000101111001010010101111101110000010000
00001101001110101001111100110111000100001101000000
11010111100001111110111110011100110111110100010000
110100101011010111011001100011101101100011000...

Second Run Input

play
100
10000000111001111011110011001001101001111000000000
K.
K+
V.
V+
F.
F+
H.
H+
J.
J+
E.
E+
T.
T+
M.
M+
X.
N-
P.
L-
W.
S-
B.
Y-
U.
G-
I.
R-
L.
L+
N.
N+
U.
U+
O.
P-
P.
P+
A.
A+
B.
B+
G.
G+
X.
X+
O.
O+
D.
Y-
Y.
Y+
Q.
Q+
W.
W+
I.
I+
R.
R+
S.
S+
C.
C+
D.
D!
001010110111000101111110110100010110001110...

Second Run Output

1
3
2
34
4
24
5
35
6
36
7
29
8
23
9
46
38
15
41
47
44
21
22
12
10
50
13
30
25
47
17
15
37
10
45
33
33
41
27
26
49
22
11
50
19
38
20
45
32
43
43
12
42
28
39
44
14
13
31
30
48
21
18
16
40
32
1
48
2
27
3
38
4
11
5
21
6
28
7
17
8
41
19
33
45
18
16
32
32
33
39
50
49
35
9
40
46
14
34
47
31
10
13
34
12
16
...

result:

ok Correct! The number of the misses is 989 (100 test cases)

Test #15:

score: 100
Accepted
time: 2ms
memory: 3604kb

First Run Input

prepare
100
HXKQHJLCSAEPANTBUFWEUTDPXRRDMQGOKMSBFWVCVLONYYIGJI
FHATBVFQWOIECJDGBSLKREDMQYNOTACNMKSJVULXGYIPPURWXH
JVWOTSJAXCAPFURISNLKXYEHWMPIOHGFUQBCRQVMLYEGDBDNTK
TOWIKXQPDRLAHPNUGUNKIRBECJYSQYMEFSDACFLXHVMJGTWBVO
WTBUHJHOXMQNYCGNQBSKUVPFOFGILTXYLARSEDCRVIWAEJMPDK
VHYQVKEJMPWUDBTWSMKIAGTEFGSYDUCCJ...

First Run Output

00101110100101100001111011100010100011001100000000
11110001001010001011001001110011111011110010000000
00010000101110001101101100110110111100110010000000
10011110110100011100000011101000111101010000010000
01001001000000111001011110100001010000100111100000
101101010101111010101011001111000001000111000...

Second Run Input

play
100
00101110100101100001111011100010100011001100000000
H.
H+
X.
X+
K.
K+
Q.
Q+
J.
J+
L.
L+
C.
C+
S.
S+
W.
E-
I.
E-
E.
E+
N.
V-
A.
Y-
M.
G-
D.
V-
V.
V+
B.
W-
W.
W+
P.
U-
A.
A+
I.
I+
T.
U-
U.
U+
R.
G-
G.
G+
P.
P+
N.
N+
T.
T+
O.
D-
D.
D+
F.
M-
M.
M+
B.
B+
Y.
Y+
F.
F+
O.
O+
R.
R!
111100010010100010...

Second Run Output

1
5
2
25
3
33
4
30
6
49
7
42
8
40
9
35
38
11
50
20
20
11
44
41
13
46
29
48
23
39
39
41
16
19
19
38
24
21
10
13
47
50
22
17
17
21
27
31
31
48
12
24
14
44
15
22
32
28
28
23
37
34
34
29
36
16
45
46
18
37
43
32
26
27
1
7
2
50
3
30
4
29
5
17
6
37
8
25
9
48
13
24
36
38
27
49
20
31
31
13
42
44
14
36
22
45
...

result:

ok Correct! The number of the misses is 1003 (100 test cases)

Test #16:

score: 100
Accepted
time: 3ms
memory: 3560kb

First Run Input

prepare
100
SCMKNXOIGSNYXFERVPAEUQHDULFWTCLIRKMJPOHBBYGJTDVQWA
XGAPSFERTQDFUWOJHLRPYNXIOVSBQTJDGCVKKAMCIUBMLNYEHW
OTQJRXSJVDUSNDIPTGYBIRAMWBEFXFCLEKHGMKQAYHOLNPUCVW
GTPJIHXDRBSYWEECOUYLWNLCXPMJFUAAMOGTVDHQRNFVKQKIBS
URSEIOWGQPCNVFDRMNIUJASLAEBBKFYHJYGVMOXDKWTQXPTCHL
ONFBMGMEDKCRRWCKPABJPDIHIYUGWQXSU...

First Run Output

10010110101011010111010010111000100010110110000000
00110011100010101101100110010111000110000000100000
01111011110011000010010010111101001010000111100000
10101101000010000111110100000011100101010001100000
00011000000111110010000110010010000111011011000000
111111000000011000101101010100011000010001011...

Second Run Input

play
100
10010110101011010111010010111000100010110110000000
S.
S+
C.
C+
M.
M+
K.
K+
N.
N+
X.
X+
O.
O+
I.
I+
V.
H-
J.
Q-
D.
V-
V.
V+
B.
T-
W.
P-
R.
E-
G.
Y-
Y.
Y+
L.
Q-
Q.
Q+
T.
T+
B.
B+
D.
D+
F.
R-
R.
R+
A.
U-
A.
A+
U.
U+
G.
G+
P.
P+
J.
J+
L.
L+
E.
E+
F.
F+
W.
W+
H.
H!
001100111000101011011001100101...

Second Run Output

1
10
2
30
3
35
4
34
5
11
6
13
7
38
8
32
17
23
44
48
24
47
47
17
41
29
28
37
33
15
43
12
42
12
31
22
22
48
45
29
40
41
46
24
27
16
16
33
19
21
50
19
25
21
9
43
18
37
36
44
26
31
20
15
14
27
49
28
39
23
1
23
2
33
3
38
4
20
5
27
6
12
7
48
8
19
36
14
29
22
15
49
37
36
18
40
35
9
28
30
30
9
43
28
24
21
2...

result:

ok Correct! The number of the misses is 989 (100 test cases)

Test #17:

score: 100
Accepted
time: 2ms
memory: 3568kb

First Run Input

prepare
100
NNODHVLKIUVAYTXEBRPAPWXGHYJBOMRSSGKFUIQMFWQLTCJEDC
HANGPOYBUGIFVTKOXXWBFRQAJLMYLMPUWCJEREKCVNDSIQSHDT
ORBBPYTLJSQVISIAGHLGUREEOKAXFKYUJQXDMHNCTNCMDWFWPV
GIAKBSRKPITXAVCLFEWDQFVNJJHXOGRMMYDEHUONTBWPUSCQLY
PXIMBIELUQGORGWAKHNJQJBYFTNTKAPDDVVCHOSYLURFMCESXW
GWUXITHXWIKOVQLSENPLYKDNCQPCJFBRM...

First Run Output

10100001000010010000001001010010111110001000000000
10101100000010011101110111010111110111011000010000
00101010000110010101101101000010010110101000100000
11001101100001110100100001001101001111010010100000
10000011000111000101000010100000000000000110100000
101001101011001100101100000110101100100111101...

Second Run Input

play
100
10100001000010010000001001010010111110001000000000
N.
N+
O.
O+
D.
D+
H.
H+
V.
V+
L.
L+
K.
K+
I.
I+
J.
M-
Y.
U-
E.
J-
J.
J+
E.
E+
F.
T-
B.
W-
P.
X-
P.
P+
B.
B+
R.
W-
W.
W+
M.
M+
A.
Y-
Y.
Y+
F.
F+
G.
Q-
A.
A+
Q.
Q+
C.
X-
X.
X+
T.
T+
S.
R-
R.
R+
C.
C+
U.
U+
S.
S+
G.
G!
101011000000100111011101...

Second Run Output

1
2
3
29
4
49
5
25
6
11
7
44
8
35
9
38
27
40
26
10
16
47
47
27
48
16
41
45
17
42
21
15
19
21
28
17
18
22
22
42
30
40
12
13
13
26
36
41
24
43
20
12
39
43
46
23
23
15
14
45
33
31
31
18
50
46
37
10
32
33
34
24
1
48
2
24
3
42
4
10
5
31
6
16
7
28
8
20
18
50
29
11
32
37
30
25
34
17
17
18
26
29
45
11
12
47...

result:

ok Correct! The number of the misses is 984 (100 test cases)