QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#171122#7186. "Memo" Game With a Hintucup-team1608#AC ✓3ms3540kbC++173.5kb2023-09-09 16:30:002023-09-09 16:30:01

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

First Run Input

prepare
2
ABCDEFGHIJKLMNOPQRSTUVWXYABCDEFGHIJKLMNOPQRSTUVWXY
AABBCCDDEEFFGGHHIIJJKKLLMMNNOOPPQQRRSSTTUUVVWWXXYY

First Run Output

00000100000100011000001001010001100111000001010010
00000000001000010000010000100011000110000010000100

Second Run Input

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

Second Run Output

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

result:

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

Test #2:

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

First Run Input

prepare
1
FNETFOMMJTYCXKCRYLGXKSPAIVQNBURJAPQHUDWSDWVIHGELBO

First Run Output

10100101100010011001101000111000110001101001011001

Second Run Input

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

Second Run Output

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

result:

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

Test #3:

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

First Run Input

prepare
50
FDAVHJWICNELMBTQGPMHCYSTUUKWOYBJNRLGEFXXSIVOAQDRKP
NPBEHYAERLSHAKCMGTQFUYXDVUIWDPBSOXCMFRJOJTNKIGLQWV
AEFGFISMPACJJYRBXUCKNOPEHODITLXWSMGVWBDQKLUQHRYVTN
CKFXOIQOLCSHAGDEUJTYBAVKWPMHDBJNRMFXTEYQUGVNPILWRS
JYIRTLMHQGUUAEDJXTSDCKPCXWPBAWHQRMGNLONVOYEKFVBIFS
IHDCXSWTUHOFXLGLGWJPACUVTBOESDMYAK...

First Run Output

10100110000000010101111001001001101000100100010110
10110111101000000100111000001100000001001000111010
00000001001010001100101000001001001001101111000000
01000010101010011101011100001000001011101101001000
10010000110001010001110011101000110111000000101100
000101110011000010001110101001011011100100101...

Second Run Input

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

Second Run Output

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

result:

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

Test #4:

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

First Run Input

prepare
75
EAHSMUJLVDPNLEKPCNIICFRTMHYWVSTQBBWRXKFDXOJQUAGGOY
CUWYVQJPSRIDKXMKTFXTFDOJVWLBEMNULIAAPYCHNGHEOGSRQB
UJTQMFLPJRGSECWAHXDCIVRQOIEPANHUBYVGFKMKLDTSWYBNOX
EYOUSDBNEQXIPMFUJCYKJVLSVWOXKLCFWARPBTIHGTMNDRGHAQ
PBHANSDUVHNKYRQVMOBLQAXSEXOLYJRGTWCFKGMWPJIFTIEDCU
YREKISUWLRFFQDIWNUASLJXGMVHBXDMBJT...

First Run Output

00100000001110001001001100010110010110101010111000
01000001010110100011101010000110010111100100110001
00101100101100100001001101010011010111101001010001
00100000110111000101010011100010000101100010000001
11110100001110000000101100100111000001011010111100
000111000100100010100001001001001010110111010...

Second Run Input

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

Second Run Output

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

result:

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

Test #5:

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

First Run Input

prepare
85
RSHXLIARGTANBOIMVCQUCBGQWEDTPMYJWYUFPKESKJODLNFVXH
GEFNCRFLXMNOJGIQPLMSBKHDVIUVCHRAAUYWQBPTWYXSJOTEDK
PNCEFQSMQNOUJPKTWEAHFSRKGCIVJXXLRHLYBWGODVBYDUTAIM
EBFQNGFUKBOYENJSUTTPKPVSIRADCMVRHAHMDCLGLXQXIOJYWW
OSYHICRXEQAMWBDUDWANLLNCVBTXMTGEPJYPGFSKIJFHUKRQOV
SESXRAXOUIGPVJUNLMJFYEBVFCOBDQHKGW...

First Run Output

10001010011110011101110100001000000100010110011001
01100001001010010110010001000110100110101110100110
11110101100100000100101000000101001001100000110110
00100100001010000001101100110010100001010101010000
01110010010001111100000100100010001111010010000001
010010010001001111011000100000111010111000101...

Second Run Input

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

Second Run Output

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

result:

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

Test #6:

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

First Run Input

prepare
90
HPBUYCSIRIQTEVJLTDYGMNBEKMSFHNCRXVDAUFQAWPLGJWKOXO
DGTONCNKSQVCREJMUPOGFWIQPALERLASDYBFVIWKXHTMXBJUHY
KODTYFIXXRTNWNCUSLOREEBCUJPABHIDVGLGJMYKWMSQHAPQVF
BGTFHKOEJPGLWJIHPWAYVDKIFXSUUQYTENNVCMDRMOASRBXCLQ
YSJXTDDMCLKFFBOWVRCSHNPTGARXJQPBKMYWUEAUNGEIIQVHOL
QTXVHWNRFUOHCPMGWMLFRSCQKGEIPKEADY...

First Run Output

11100111101000000101000110100001001000101000100010
11000011001100101110101100100010110010100100100001
01010011101100011001000111010000010111011110110001
10000011001100110100111000101001110001001001011110
00011010011001011101110011100011000001100100011010
000011100111101101011110001101101101000110100...

Second Run Input

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

Second Run Output

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

result:

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

Test #7:

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

First Run Input

prepare
95
CXKFQPTEDJGCNSIWIDLVHJBTMEUMLQVYOHGPKNRYOFXRSBUWAA
DKGIBMTPLXOCTJEVQYVUMAFHNXEOCRDPNQHSUGSWAJRIFYBWKL
QHTADVKMABFWXHRLNICEGJOCPXWTYNVMBESJURIODUGFLYSKQP
WPTDMLIIEOWCKYSSREBDBFXNQGVNXAPVJHYLUKUCGHQRAFJMOT
PUYIWXOSXDQNITNCYWFEKGHPLKVJABJQTUSVRMLCEDFMGAOBHR
YFMQKSXVBUIYLCBRDWWNVFHTTMRHUDOGLA...

First Run Output

01000111010101010100000011111011001001001100010010
11000010100110000010100000011011001111101101011101
00001111001100100000110001010101010001100000010000
01101111101100111000001101101000010000100010001110
11110001010001100010011011110101110010011110111000
000111010000110000010101001001111011010110000...

Second Run Input

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

Second Run Output

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

result:

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

Test #8:

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

First Run Input

prepare
100
NKXFSXFWWAOBPEJOTMVHIPUKCGQSRLCRHYNVDMETALGIJQUDBY
LQEXDPFVMOMABELGPHCWBJTVCTNYXGRYWJUQKFIHOSNSKAIURD
MBTKVSCAPAXWHBEHUSQOGYJIUVTNEIRPFYQXJORNLFDCMKWDGL
EBBOJXCXNECGAQQALWPPMJVTGSHIORNMHRDFSYUYLFIUVDKWKT
GKOAHWLYQXVKCLRRTCYMFBSQUPDIWIJPVGDFMNAUTSJXHBEEON
EQEDVJGKUIXMCYQTANIHSADKWRNFYBGOT...

First Run Output

10110010101110110100010011110110100011010110100000
11010000010010011101110001111010100101010011001110
00110100001100101010101010100101000000001111000000
00100100001000001110100101110101000111011011000100
01100010100111000000111000110111010000110000111101
001000000100100110001010110010011000101000101...

Second Run Input

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

Second Run Output

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

result:

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

Test #9:

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

First Run Input

prepare
100
BULRJTVXIHFVSKOMPWMCGENUNYAKIQQXSPBADERWHJCYFDOLGT
FIHEGHKMALOKAVTSYYWTMQJCERQNBLFIOPSBDUCXVNRWJXUGPD
IGMAXBJVQJGTTPKQCFEEUWRSONNSHBRKUPWHCDDYLXFYVLOIMA
FKYUXTNHQBVLPWEOPREKVIMHCOJLXNDGBFUGIRSASJYADMWTCQ
RYIDFMJOWUBQNXLWNCRSSGKTXOHPVKTEPAAFMEILQVBUHJDGCY
SOVMPWQBMWNURDEALASGVNHCYUTOGKTKY...

First Run Output

10000001011101010001100101100110101111010001011100
10100000101110000100011001110001010001100000011010
00010011000011000000111011000010010101010000110010
10100010100001100101111011100110110111000000110000
10001000110001011000101000011010010011100110100101
010010111010101001101111001101000011000000110...

Second Run Input

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

Second Run Output

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

result:

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

Test #10:

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

First Run Input

prepare
100
SQROXGJWGXFMMKUNTEIRNLEVAYLHDHQPPBCSJIWFUYVCTADBKO
PKYCKEOOYJVXPWFGVDJBEULHWQTCAHLMAMURBFQGTIXSRISNND
UOOAMTVCCXBSEKWXPGWSRBNYNLIHJYJITFADEHKPRFDMQQVUGL
YEFEDNPRNSWMCWBAKSQQRBGLXKOILXTDAGJUVYUMVHHCJIFOTP
AVXANGTWWEBDESYBMQHOVRXCLFKDIGJSTJPQFYRCHIKMNLOPUU
OJNYRXLJHGGWFMDDMOPKYTHTUAKLNICIE...

First Run Output

01001000011000101110111010110010010011010110011101
11110010100001101000010100010001110011100001110010
00101011100111000000001101100110101010000100011101
00011001001010000100110001011011110100011011001001
00000101011110100000101100110011001011010110100100
011101001010110000111000111101110101001011100...

Second Run Input

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

Second Run Output

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

result:

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

Test #11:

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

First Run Input

prepare
100
RGFVPILWOVETBGSLKHKNCHJIOXAMPXNQSWJYUDRBMDAEYFQCTU
OLRHQVCXUYKWSEJPDYTFGKNVCASHMIDPNERUBOQJMBTGAXLIFW
KXYEEFLNYOGBNIUVVDTCRJDSHQISRAUWAQCTWLMPBHMJKXGFPO
BUXYMYPJMVFQKCIDQHEUOTITPKHLORXVGLASAGWDCJSBWNEFRN
TXKFEIVQISUBKTHXRDJCNOMPMGHNDCLPAWVBWUAEQSJRFYGOYL
PSRXNYTOKJMUFUTIRVMKBDXLJBCLFVGHA...

First Run Output

10001011001010010101111100001011010011010111010101
01110110101000111100000011010101000111010010100011
01010111010001100100001001010011010101100001101110
10000001011110100011001100001111110100100011010101
11001111010101010100001000001010101000010001001001
111100100110001111011011000011110010111001010...

Second Run Input

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

Second Run Output

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

result:

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

Test #12:

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

First Run Input

prepare
100
VJXSDLHVPDTYCWKILGXUIJANAHYSMUWBRRQTCENEPFFOKBGMOQ
BVAFIMQXPHKTKJWSLITNXOEVCFYCOQADGSGDWUPLHNBJRUEMYR
RLPSNKYDCLUMVDTHJYIHWQSGRBNXUFOFAAGEQTKCPVJEWBMOIX
IBFYNHNRSYOHXPGGKBFCSUMOJLUPKVAQMTCLDWREWQDTAVXIEJ
KGRTAINBFADUHILYMBEOPECVXQPDOWWTJSKMGQSVRUHLCNFXYJ
ETFGMNTHGOKBXNMELFBWCARUHICYJRWSX...

First Run Output

10101100101110101001110001101011100101011111011000
10000101010000010100000100011000001111011111011100
10001110101111001001101100101000011110000100011010
00010100001010000011101101110010110100010100100011
01010011001000111001000000001010110100001010000000
001001100110100011000011010110110011110001100...

Second Run Input

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

Second Run Output

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

result:

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

Test #13:

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

First Run Input

prepare
100
MOHGEABJDDXQJMYVSPKBWONVTCPLWSQRFEKUNUHTLCXYIAFIGR
LOFDRVYTQJXQHRTKMBHCEVSAUUIFAEXLMOGIKPBYNWNWCJPGSD
EJBMJEYAAUDIPOTXILRCUQSDNKVPRYFCKMLSQGWFTVXOHNBHWG
MHKMCDGVOQRWJBFSKLSGTYUDWOIAIUPCYTQPNEHBNJRAFXXVEL
AVRXEJCFQXWBYTQRSWYHOBUPUNGSDMHILCNLFKJKMDGEOITAPV
IRLQBTAYITACMJROOJHYNHSPBQLNEVWGX...

First Run Output

00110011101110001100001000000010000100101100011000
11010011101010011000100011010100011110010000110010
00100100101000000110100100010000011000000000000101
00110111000101000110010001100001100101010111000001
00000101011000111101001001001001000101000000111101
000101000111010000011000011001000000001100010...

Second Run Input

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

Second Run Output

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

result:

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

Test #14:

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

First Run Input

prepare
100
KVKFHJETMUGYIINCNCXOSBTFLAAQERRDPVHJUXWDPQYWOMLSBG
RKGEAFBUDOEJVNHJBSTOAHIWMWKFCPCYYVITXGXQUDLQSNLRMP
VFSDMWJQNEGIOKCAQFCUJHRBPLWLMUPOASHKYETNTXGDXRVBIY
AUELFVXFMCRTRVDAOJQWJKMQLEUKWSHXGIYHNNBOPBTPGCYSDI
MGTWHRVJKOPGAYSEXKCJIQRYPDXNBTEFBOWACHSLINLUVUDQFM
CAVGCIHTJQXHKTPQOLADBJDMGUWYENMLV...

First Run Output

01010101010101010100111001001000100110010011000101
10001010100110000100000001010010000001011100001110
10101101000100111000001100110110010000011011000100
00000001010010011010101001010111101101000011001000
00110011001100101101111001000110101100100101001110
010000000010101011000100000010111001100110010...

Second Run Input

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

Second Run Output

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

result:

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

Test #15:

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

First Run Input

prepare
100
HXKQHJLCSAEPANTBUFWEUTDPXRRDMQGOKMSBFWVCVLONYYIGJI
FHATBVFQWOIECJDGBSLKREDMQYNOTACNMKSJVULXGYIPPURWXH
JVWOTSJAXCAPFURISNLKXYEHWMPIOHGFUQBCRQVMLYEGDBDNTK
TOWIKXQPDRLAHPNUGUNKIRBECJYSQYMEFSDACFLXHVMJGTWBVO
WTBUHJHOXMQNYCGNQBSKUVPFOFGILTXYLARSEDCRVIWAEJMPDK
VHYQVKEJMPWUDBTWSMKIAGTEFGSYDUCCJ...

First Run Output

11100111010101000001111001001011010010000100100000
10100111000000011001100001010110100000010110101110
10010101010110101110110010100110010000001110101000
11001011100110100010010101110100001111101100010001
01101110011000000101111001001011100011101110100110
101011110000011000011010101010001001001000110...

Second Run Input

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

Second Run Output

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

result:

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

Test #16:

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

First Run Input

prepare
100
SCMKNXOIGSNYXFERVPAEUQHDULFWTCLIRKMJPOHBBYGJTDVQWA
XGAPSFERTQDFUWOJHLRPYNXIOVSBQTJDGCVKKAMCIUBMLNYEHW
OTQJRXSJVDUSNDIPTGYBIRAMWBEFXFCLEKHGMKQAYHOLNPUCVW
GTPJIHXDRBSYWEECOUYLWNLCXPMJFUAAMOGTVDHQRNFVKQKIBS
URSEIOWGQPCNVFDRMNIUJASLAEBBKFYHJYGVMOXDKWTQXPTCHL
ONFBMGMEDKCRRWCKPABJPDIHIYUGWQXSU...

First Run Output

01001010000011001010101101110101110000100110001001
11101011000000011110010011010000100100011100100001
01110110010000110010100011110101001100101010111000
01100110011111010010000101110011101110001000110000
00101100010100100100000100111001101011000000111110
011101011010100100000011001100001100010011000...

Second Run Input

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

Second Run Output

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

result:

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

Test #17:

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

First Run Input

prepare
100
NNODHVLKIUVAYTXEBRPAPWXGHYJBOMRSSGKFUIQMFWQLTCJEDC
HANGPOYBUGIFVTKOXXWBFRQAJLMYLMPUWCJEREKCVNDSIQSHDT
ORBBPYTLJSQVISIAGHLGUREEOKAXFKYUJQXDMHNCTNCMDWFWPV
GIAKBSRKPITXAVCLFEWDQFVNJJHXOGRMMYDEHUONTBWPUSCQLY
PXIMBIELUQGORGWAKHNJQJBYFTNTKAPDDVVCHOSYLURFMCESXW
GWUXITHXWIKOVQLSENPLYKDNCQPCJFBRM...

First Run Output

10110101100111011000111001010111010010100001000101
11100000001011001100111100111000011100000010101100
01110100011000010000111100001111001110101001001001
01100000100000001010100000100110001010101111000010
11110111010001000110100000001000100110100010100001
011000110100101111010001011001111001110101101...

Second Run Input

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

Second Run Output

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

result:

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