QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#391852#7186. "Memo" Game With a HintKKT89AC ✓1ms3888kbC++171.6kb2024-04-16 21:04:292024-04-16 21:04:29

Judging History

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

  • [2024-04-16 21:04:29]
  • 评测
  • 测评结果:AC
  • 用时:1ms
  • 内存:3888kb
  • [2024-04-16 21:04:29]
  • 提交

answer

#pragma GCC optimize("Ofast")
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef unsigned long long int ull;

mt19937_64 rng(chrono::steady_clock::now().time_since_epoch().count());
ll myRand(ll B) { return (ull)rng() % B; }

int main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    string str;
    int q;
    cin >> str >> q;
    if (str == "prepare") {
        while (q--) {
            string s;
            cin >> s;
            vector<bool> used(25);
            for (char c : s) {
                cout << used[c - 'A'];
                used[c - 'A'] = true;
            }
            cout << endl;
        }
    } else {
        while (q--) {
            string s, t;
            cin >> s;
            vector<int> pos(25);
            vector<int> one;
            for (int i = 0; i < (int)s.size(); ++i) {
                if (s[i] == '1') one.push_back(i);
            }
            one.push_back(one[0]);
            for (int i = 0; i < one.size(); i += 2) {
                cout << one[i] + 1 << endl;
                cin >> t;
                pos[t[0] - 'A'] = one[i] + 1;
                cout << one[i + 1] + 1 << endl;
                cin >> t;
                pos[t[0] - 'A'] = one[i + 1] + 1;
            }
            for (int i = 0; i < (int)s.size(); ++i) {
                if (s[i] == '0') {
                    cout << i + 1 << endl;
                    cin >> t;
                    cout << pos[t[0] - 'A'] << endl;
                    cin >> t;
                }
            }
        }
    }
}

详细

Test #1:

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

First Run Input

prepare
2
ABCDEFGHIJKLMNOPQRSTUVWXYABCDEFGHIJKLMNOPQRSTUVWXY
AABBCCDDEEFFGGHHIIJJKKLLMMNNOOPPQQRRSSTTUUVVWWXXYY

First Run Output

00000000000000000000000001111111111111111111111111
01010101010101010101010101010101010101010101010101

Second Run Input

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

Second Run Output

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

result:

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

Test #2:

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

First Run Input

prepare
1
FNETFOMMJTYCXKCRYLGXKSPAIVQNBURJAPQHUDWSDWVIHGELBO

First Run Output

00001001010000101001100000010011111010011111111111

Second Run Input

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

Second Run Output

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

result:

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

Test #3:

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

First Run Input

prepare
50
FDAVHJWICNELMBTQGPMHCYSTUUKWOYBJNRLGEFXXSIVOAQDRKP
NPBEHYAERLSHAKCMGTQFUYXDVUIWDPBSOXCMFRJOJTNKIGLQWV
AEFGFISMPACJJYRBXUCKNOPEHODITLXWSMGVWBDQKLUQHRYVTN
CKFXOIQOLCSHAGDEUJTYBAVKWPMHDBJNRMFXTEYQUGVNPILWRS
JYIRTLMHQGUUAEDJXTSDCKPCXWPBAWHQRMGNLONVOYEKFVBIFS
IHDCXSWTUHOFXLGLGWJPACUVTBOESDMYAK...

First Run Output

00000000000000000011100101010111101111011111111111
00000001000110000000010001001111011111011111111111
00001000010010000010001101010010111011101111111111
00000001010000000000010100011110011111111111111111
00000000000100010101000110101111111010101111011111
000000000100100111000110101011001011101110101...

Second Run Input

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

Second Run Output

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

result:

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

Test #4:

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

First Run Input

prepare
75
EAHSMUJLVDPNLEKPCNIICFRTMHYWVSTQBBWRXKFDXOJQUAGGOY
CUWYVQJPSRIDKXMKTFXTFDOJVWLBEMNULIAAPYCHNGHEOGSRQB
UJTQMFLPJRGSECWAHXDCIVRQOIEPANHUBYVGFKMKLDTSWYBNOX
EYOUSDBNEQXIPMFUJCYKJVLSVWOXKLCFWARPBTIHGTMNDRGHAQ
PBHANSDUVHNKYRQVMOBLQAXSEXOLYJRGTWCFKGMWPJIFTIEDCU
YREKISUWLRFFQDIWNUASLJXGMVHBXDMBJT...

First Run Output

00000000000011010101100011001110011101111011110111
00000000000000010011110111000101110111101011111111
00000000100000000001001101111011001110111111111111
00000000100000010010100110111111100110100111111111
00000000011000010010110101111010000011111101111111
000000000101001101011000000011111001111011110...

Second Run Input

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

Second Run Output

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

result:

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

Test #5:

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

First Run Input

prepare
85
RSHXLIARGTANBOIMVCQUCBGQWEDTPMYJWYUFPKESKJODLNFVXH
GEFNCRFLXMNOJGIQPLMSBKHDVIUVCHRAAUYWQBPTWYXSJOTEDK
PNCEFQSMQNOUJPKTWEAHFSRKGCIVJXXLRHLYBWGODVBYDUTAIM
EBFQNGFUKBOYENJSUTTPKPVSIRADCMVRHAHMDCLGLXQXIOJYWW
OSYHICRXEQAMWBDUDWANLLNCVBTXMTGEPJYPGFSKIJFHUKRQOV
SESXRAXOUIGPVJUNLMJFYEBVFCOBDQHKGW...

First Run Output

00000001001000100000111100010100111010111111111111
00000010001001000110000001011110110011101111111111
00000000110001000100110101001010111001110111111111
00000010010011001010110100000011011111011011111101
00000000000000001110011101011101001110101111111111
001000100000001000100101101100001011011111111...

Second Run Input

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

Second Run Output

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

result:

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

Test #6:

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

First Run Input

prepare
90
HPBUYCSIRIQTEVJLTDYGMNBEKMSFHNCRXVDAUFQAWPLGJWKOXO
DGTONCNKSQVCREJMUPOGFWIQPALERLASDYBFVIWKXHTMXBJUHY
KODTYFIXXRTNWNCUSLOREEBCUJPABHIDVGLGJMYKWMSQHAPQVF
BGTFHKOEJPGLWJIHPWAYVDKIFXSUUQYTENNVCMDRMOASRBXCLQ
YSJXTDDMCLKFFBOWVRCSHNPTGARXJQPBKMYWUEAUNGEIIQVHOL
QTXVHWNRFUOHCPMGWMLFRSCQKGEIPKEADY...

First Run Output

00000000010000001010001101101111011011110111111011
00000010000100000011000110011111100111110011111111
00000000101001000011010110001011001110111110111111
00000000001001011100001110001011101100101111111111
00000010000010000011000100111011111100111110111111
000000000001000011011011010011100011110111111...

Second Run Input

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

Second Run Output

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

result:

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

Test #7:

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

First Run Input

prepare
95
CXKFQPTEDJGCNSIWIDLVHJBTMEUMLQVYOHGPKNRYOFXRSBUWAA
DKGIBMTPLXOCTJEVQYVUMAFHNXEOCRDPNQHSUGSWAJRIFYBWKL
QHTADVKMABFWXHRLNICEGJOCPXWTYNVMBESJURIODUGFLYSKQP
WPTDMLIIEOWCKYSSREBDBFXNQGVNXAPVJHYLUKUCGHQRAFJMOT
PUYIWXOSXDQNITNCYWFEKGHPLKVJABJQTUSVRMLCEDFMGAOBHR
YFMQKSXVBUIYLCBRDWWNVFHTTMRHUDOGLA...

First Run Output

00000000000100001100010101011110011111011111111101
00000000000010000010100001111011111011101111111111
00000000100001000000000101110111110101111111111111
00000001001000010101100000011011001101111111111111
00000000100010101100000101000011111100111111111111
000000000001001000101100111111001001111110111...

Second Run Input

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

Second Run Output

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

result:

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

Test #8:

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

First Run Input

prepare
100
NKXFSXFWWAOBPEJOTMVHIPUKCGQSRLCRHYNVDMETALGIJQUDBY
LQEXDPFVMOMABELGPHCWBJTVCTNYXGRYWJUQKFIHOSNSKAIURD
MBTKVSCAPAXWHBEHUSQOGYJIUVTNEIRPFYQXJORNLFDCMKWDGL
EBBOJXCXNECGAQQALWPPMJVTGSHIORNMHRDFSYUYLFIUVDKWKT
GKOAHWLYQXVKCLRRTCYMFBSQUPDIWIJPVGDFMNAUTSJXHBEEON
EQEDVJGKUIXMCYQTANIHSADKWRNFYBGOT...

First Run Output

00000110100000010000010100010011101101111111111111
00000000001001101000100111001101110101011011111111
00000000010001010100000011101101011111110101111111
00100001011000110001010010001011110010011111110111
00000000000101010110000100001101111110111111110111
001000000000001000100111001010101111111101011...

Second Run Input

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

Second Run Output

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

result:

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

Test #9:

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

First Run Input

prepare
100
BULRJTVXIHFVSKOMPWMCGENUNYAKIQQXSPBADERWHJCYFDOLGT
FIHEGHKMALOKAVTSYYWTMQJCERQNBLFIOPSBDUCXVNRWJXUGPD
IGMAXBJVQJGTTPKQCFEEUWRSONNSHBRKUPWHCDDYLXFYVLOIMA
FKYUXTNHQBVLPWEOPREKVIMHCOJLXNDGBFUGIRSASJYADMWTCQ
RYIDFMJOWUBQNXLWNCRSSGKTXOHPVKTEPAAFMEILQVBUHJDGCY
SOVMPWQBMWNURDEALASGVNHCYUTOGKTKY...

First Run Output

00000000000100000010000110011011111101111111111111
00000100000110000101100010100111101100101111111111
00000000011010010001000000110111111110100111111111
00000000000000001011100101011100111111001111111111
00000000000000011010100011000110101111111111111111
000000001100000001101100010110111101111001111...

Second Run Input

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

Second Run Output

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

result:

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

Test #10:

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

First Run Input

prepare
100
SQROXGJWGXFMMKUNTEIRNLEVAYLHDHQPPBCSJIWFUYVCTADBKO
PKYCKEOOYJVXPWFGVDJBEULHWQTCAHLMAMURBFQGTIXSRISNND
UOOAMTVCCXBSEKWXPGWSRBNYNLIHJYJITFADEHKPRFDMQQVUGL
YEFEDNPRNSWMCWBAKSQQRBGLXKOILXTDAGJUVYUMVHHCJIFOTP
AVXANGTWWEBDESYBMQHOVRXCLFKDIGJSTJPQFYRCHIKMNLOPUU
OJNYRXLJHGGWFMDDMOPKYTHTUAKLNICIE...

First Run Output

00000000110010000001101000100110100111111111111111
00001001100010001010100010010110111011111010111011
00100000100000010011010010000111101011111111011111
00010000100001000101110001001101110001111011111111
00010000100010010000101000010101110111111111111101
000000010010000111001011001110010100010111111...

Second Run Input

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

Second Run Output

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

result:

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

Test #11:

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

First Run Input

prepare
100
RGFVPILWOVETBGSLKHKNCHJIOXAMPXNQSWJYUDRBMDAEYFQCTU
OLRHQVCXUYKWSEJPDYTFGKNVCASHMIDPNERUBOQJMBTGAXLIFW
KXYEEFLNYOGBNIUVVDTCRJDSHQISRAUWAQCTWLMPBHMJKXGFPO
BUXYMYPJMVFQKCIDQHEUOTITPKHLORXVGLASAGWDCJSBWNEFRN
TXKFEIVQISUBKTHXRDJCNOMPMGHNDCLPAWVBWUAEQSJRFYGOYL
PSRXNYTOKJMUFUTIRVMKBDXLJBCLFVGHA...

First Run Output

00000000010001010010010110001110111000111111111111
00000000000000000100010110110011111101111111111111
00001000100010001000001000111010111111001111111111
00000100100000001001001111101011010011011111101111
00000000100011010000000010111101001111111111101111
000000000000011010110010110111000111101111111...

Second Run Input

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

Second Run Output

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

result:

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

Test #12:

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

First Run Input

prepare
100
VJXSDLHVPDTYCWKILGXUIJANAHYSMUWBRRQTCENEPFFOKBGMOQ
BVAFIMQXPHKTKJWSLITNXOEVCFYCOQADGSGDWUPLHNBJRUEMYR
RLPSNKYDCLUMVDTHJYIHWQSGRBNXUFOFAAGEQTKCPVJEWBMOIX
IBFYNHNRSYOHXPGGKBFCSUMOJLUPKVAQMTCLDWREWQDTAVXIEJ
KGRTAINBFADUHILYMBEOPECVXQPDOWWTJSKMGQSVRUHLCNFXYJ
ETFGMNTHGOKBXNMELFBWCARUHICYJRWSX...

First Run Output

00000001010000001010110011110110010110111010111111
00000000000010000110100101011110011110111111011111
00000000010001000101001010101001011011111111111111
00000010010100010110100100111000101100101111111111
00000000010001000100010000111011001111111111111111
000000101000011101100000101001101101010110111...

Second Run Input

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

Second Run Output

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

result:

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

Test #13:

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

First Run Input

prepare
100
MOHGEABJDDXQJMYVSPKBWONVTCPLWSQRFEKUNUHTLCXYIAFIGR
LOFDRVYTQJXQHRTKMBHCEVSAUUIFAEXLMOGIKPBYNWNWCJPGSD
EJBMJEYAAUDIPOTXILRCUQSDNKVPRYFCKMLSQGWFTVXOHNBHWG
MHKMCDGVOQRWJBFSKLSGTYUDWOIAIUPCYTQPNEHBNJRAFXXVEL
AVRXEJCFQXWBYTQRSWYHOBUPUNGSDMHILCNLFKJKMDGEOITAPV
IRLQBTAYITACMJROOJHYNHSPBQLNEVWGX...

First Run Output

00000000010011000001010100101110011011111111011111
00000000000101100010010001011111110110110011111111
00001100100000001000100100011101111110011111011111
00010000000000001011000111001101111100111111101111
00000000010000110110010010010010011110111111111111
000000001110001011010100111100000010010111111...

Second Run Input

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

Second Run Output

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

result:

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

Test #14:

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

First Run Input

prepare
100
KVKFHJETMUGYIINCNCXOSBTFLAAQERRDPVHJUXWDPQYWOMLSBG
RKGEAFBUDOEJVNHJBSTOAHIWMWKFCPCYYVITXGXQUDLQSNLRMP
VFSDMWJQNEGIOKCAQFCUJHRBPLWLMUPOASHKYETNTXGDXRVBIY
AUELFVXFMCRTRVDAOJQWJKMQLEUKWSHXGIYHNNBOPBTPGCYSDI
MGTWHRVJKOPGAYSEXKCJIQRYPDXNBTEFBOWACHSLINLUVUDQFM
CAVGCIHTJQXHKTPQOLADBJDMGUWYENMLV...

First Run Output

00100000000001001100001100101010011111011111111111
00000000001000011001110001110010111101101101111111
00000000000000001110100000111111111101011011111111
00000001000011010000101111111001000101010111111111
00000000000100000101001110100110111111101110111111
000010000001010100100110100000111000111111111...

Second Run Input

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

Second Run Output

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

result:

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

Test #15:

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

First Run Input

prepare
100
HXKQHJLCSAEPANTBUFWEUTDPXRRDMQGOKMSBFWVCVLONYYIGJI
FHATBVFQWOIECJDGBSLKREDMQYNOTACNMKSJVULXGYIPPURWXH
JVWOTSJAXCAPFURISNLKXYEHWMPIOHGFUQBCRQVMLYEGDBDNTK
TOWIKXQPDRLAHPNUGUNKIRBECJYSQYMEFSDACFLXHVMJGTWBVO
WTBUHJHOXMQNYCGNQBSKUVPFOFGILTXYLARSEDCRVIWAEJMPDK
VHYQVKEJMPWUDBTWSMKIAGTEFGSYDUCCJ...

First Run Output

00001000000010000001110110110100111111011111010111
00000010000000001000011010011111111110101110111111
00000010001000001000100010111101100111111111011111
00000000000001000111110000001101011111111011111111
00000010000000011100100011100111100100111111111111
000010000000000101100011011111011110110001011...

Second Run Input

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

Second Run Output

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

result:

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

Test #16:

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

First Run Input

prepare
100
SCMKNXOIGSNYXFERVPAEUQHDULFWTCLIRKMJPOHBBYGJTDVQWA
XGAPSFERTQDFUWOJHLRPYNXIOVSBQTJDGCVKKAMCIUBMLNYEHW
OTQJRXSJVDUSNDIPTGYBIRAMWBEFXFCLEKHGMKQAYHOLNPUCVW
GTPJIHXDRBSYWEECOUYLWNLCXPMJFUAAMOGTVDHQRNFVKQKIBS
URSEIOWGQPCNVFDRMNIUJASLAEBBKFYHJYGVMOXDKWTQXPTCHL
ONFBMGMEDKCRRWCKPABJPDIHIYUGWQXSU...

First Run Output

00000000011010000001000010100111111011101111111111
00000000000100000011001010101111101011011111111111
00000001000101001000110001001100100111111111111111
00000000000000100010101111010101111101101111011111
00000000000000010111001011010100111111011101111111
000000100000101100101100100110001000111111111...

Second Run Input

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

Second Run Output

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

result:

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

Test #17:

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

First Run Input

prepare
100
NNODHVLKIUVAYTXEBRPAPWXGHYJBOMRSSGKFUIQMFWQLTCJEDC
HANGPOYBUGIFVTKOXXWBFRQAJLMYLMPUWCJEREKCVNDSIQSHDT
ORBBPYTLJSQVISIAGHLGUREEOKAXFKYUJQXDMHNCTNCMDWFWPV
GIAKBSRKPITXAVCLFEWDQFVNJJHXOGRMMYDEHUONTBWPUSCQLY
PXIMBIELUQGORGWAKHNJQJBYFTNTKAPDDVVCHOSYLURFMCESXW
GWUXITHXWIKOVQLSENPLYKDNCQPCJFBRM...

First Run Output

01000000001000000001101011011010111011011111101111
00000000010000010101100100011111101011111100111111
00010000000001100011010110100111111001001111101111
00000001010010000000011001010110101110111111111111
00000100000001000000111000111110101011011111111111
000000011100000000010101011100000111111101111...

Second Run Input

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

Second Run Output

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

result:

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