QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#172716#7186. "Memo" Game With a Hintucup-team1519#AC ✓3ms3860kbC++144.5kb2023-09-09 20:20:012023-09-09 20:20:02

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

First Run Input

prepare
2
ABCDEFGHIJKLMNOPQRSTUVWXYABCDEFGHIJKLMNOPQRSTUVWXY
AABBCCDDEEFFGGHHIIJJKKLLMMNNOOPPQQRRSSTTUUVVWWXXYY

First Run Output

10011001011011011000111010111001111011111000000100
10000011000010100011100010010011010010110011110000

Second Run Input

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

Second Run Output

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

result:

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

Test #2:

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

First Run Input

prepare
1
FNETFOMMJTYCXKCRYLGXKSPAIVQNBURJAPQHUDWSDWVIHGELBO

First Run Output

00100011011001110110010010001111100011111000001000

Second Run Input

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

Second Run Output

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

result:

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

Test #3:

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

First Run Input

prepare
50
FDAVHJWICNELMBTQGPMHCYSTUUKWOYBJNRLGEFXXSIVOAQDRKP
NPBEHYAERLSHAKCMGTQFUYXDVUIWDPBSOXCMFRJOJTNKIGLQWV
AEFGFISMPACJJYRBXUCKNOPEHODITLXWSMGVWBDQKLUQHRYVTN
CKFXOIQOLCSHAGDEUJTYBAVKWPMHDBJNRMFXTEYQUGVNPILWRS
JYIRTLMHQGUUAEDJXTSDCKPCXWPBAWHQRMGNLONVOYEKFVBIFS
IHDCXSWTUHOFXLGLGWJPACUVTBOESDMYAK...

First Run Output

10100101110100110101010111001011111011011010010100
01010110111001111011100011010010101000110010100100
10010011101000100001000111011000000110000101101000
10010011101001000111000111100010110111100101110100
11110010010111110100000110001000100110000101111000
101101100100101110101010001100001110100010000...

Second Run Input

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

Second Run Output

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

result:

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

Test #4:

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

First Run Input

prepare
75
EAHSMUJLVDPNLEKPCNIICFRTMHYWVSTQBBWRXKFDXOJQUAGGOY
CUWYVQJPSRIDKXMKTFXTFDOJVWLBEMNULIAAPYCHNGHEOGSRQB
UJTQMFLPJRGSECWAHXDCIVRQOIEPANHUBYVGFKMKLDTSWYBNOX
EYOUSDBNEQXIPMFUJCYKJVLSVWOXKLCFWARPBTIHGTMNDRGHAQ
PBHANSDUVHNKYRQVMOBLQAXSEXOLYJRGTWCFKGMWPJIFTIEDCU
YREKISUWLRFFQDIWNUASLJXGMVHBXDMBJT...

First Run Output

10110010110110011010111000011000110101010100110000
01100111111010011010100100011000001111101000100100
11111000010001010111101001100100100100010111011000
00010001001001011011110011101000110100100111010100
00010101001010010010101001010011101011110110001100
011101100100101101000101011100110010100010111...

Second Run Input

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

Second Run Output

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

result:

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

Test #5:

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

First Run Input

prepare
85
RSHXLIARGTANBOIMVCQUCBGQWEDTPMYJWYUFPKESKJODLNFVXH
GEFNCRFLXMNOJGIQPLMSBKHDVIUVCHRAAUYWQBPTWYXSJOTEDK
PNCEFQSMQNOUJPKTWEAHFSRKGCIVJXXLRHLYBWGODVBYDUTAIM
EBFQNGFUKBOYENJSUTTPKPVSIRADCMVRHAHMDCLGLXQXIOJYWW
OSYHICRXEQAMWBDUDWANLLNCVBTXMTGEPJYPGFSKIJFHUKRQOV
SESXRAXOUIGPVJUNLMJFYEBVFCOBDQHKGW...

First Run Output

11100011100110001100001100110101110001010001101000
10110011110101100001010000111001111010001001010100
10110010010010011010001000101000010010101010001100
00110010010001100001010110110011100100001000101000
00001101100101000111010100010111101001110111011000
010000101010011000110101011101010110011100001...

Second Run Input

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

Second Run Output

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

result:

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

Test #6:

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

First Run Input

prepare
90
HPBUYCSIRIQTEVJLTDYGMNBEKMSFHNCRXVDAUFQAWPLGJWKOXO
DGTONCNKSQVCREJMUPOGFWIQPALERLASDYBFVIWKXHTMXBJUHY
KODTYFIXXRTNWNCUSLOREEBCUJPABHIDVGLGJMYKWMSQHAPQVF
BGTFHKOEJPGLWJIHPWAYVDKIFXSUUQYTENNVCMDRMOASRBXCLQ
YSJXTDDMCLKFFBOWVRCSHNPTGARXJQPBKMYWUEAUNGEIIQVHOL
QTXVHWNRFUOHCPMGWMLFRSCQKGEIPKEADY...

First Run Output

00111010010101101000100101001001111001011010010000
00000111001001010101001001100011010011100111111000
11100101001011111001010001100110001101111000010000
10110101010011111000011011110001101010010100000100
01000111001000111011011011101001100010000101001000
111010001001100101101001110100000010011101001...

Second Run Input

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

Second Run Output

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

result:

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

Test #7:

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

First Run Input

prepare
95
CXKFQPTEDJGCNSIWIDLVHJBTMEUMLQVYOHGPKNRYOFXRSBUWAA
DKGIBMTPLXOCTJEVQYVUMAFHNXEOCRDPNQHSUGSWAJRIFYBWKL
QHTADVKMABFWXHRLNICEGJOCPXWTYNVMBESJURIODUGFLYSKQP
WPTDMLIIEOWCKYSSREBDBFXNQGVNXAPVJHYLUKUCGHQRAFJMOT
PUYIWXOSXDQNITNCYWFEKGHPLKVJABJQTUSVRMLCEDFMGAOBHR
YFMQKSXVBUIYLCBRDWWNVFHTTMRHUDOGLA...

First Run Output

11010001010100100110010110111011000111101010011000
01111000001110100111010101110100101000110011111000
00001110110011011000010000010101111011110111111000
01010001111010001111001011110111000111100010001000
11101010000100001000110010001000010001110101000100
110100101010100110000011110101110001101001001...

Second Run Input

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

Second Run Output

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

result:

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

Test #8:

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

First Run Input

prepare
100
NKXFSXFWWAOBPEJOTMVHIPUKCGQSRLCRHYNVDMETALGIJQUDBY
LQEXDPFVMOMABELGPHCWBJTVCTNYXGRYWJUQKFIHOSNSKAIURD
MBTKVSCAPAXWHBEHUSQOGYJIUVTNEIRPFYQXJORNLFDCMKWDGL
EBBOJXCXNECGAQQALWPPMJVTGSHIORNMHRDFSYUYLFIUVDKWKT
GKOAHWLYQXVKCLRRTCYMFBSQUPDIWIJPVGDFMNAUTSJXHBEEON
EQEDVJGKUIXMCYQTANIHSADKWRNFYBGOT...

First Run Output

01000111101010100001100011011000010000010111110000
01110011000110110000111010001100001010100111101000
00110110110001011010110110011010001011010110010000
10010001000000111010101011100001010001111000011000
10000111010000001101100100110100111010110001001000
010000011100011010010001100001011110111010111...

Second Run Input

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

Second Run Output

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

result:

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

Test #9:

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

First Run Input

prepare
100
BULRJTVXIHFVSKOMPWMCGENUNYAKIQQXSPBADERWHJCYFDOLGT
FIHEGHKMALOKAVTSYYWTMQJCERQNBLFIOPSBDUCXVNRWJXUGPD
IGMAXBJVQJGTTPKQCFEEUWRSONNSHBRKUPWHCDDYLXFYVLOIMA
FKYUXTNHQBVLPWEOPREKVIMHCOJLXNDGBFUGIRSASJYADMWTCQ
RYIDFMJOWUBQNXLWNCRSSGKTXOHPVKTEPAAFMEILQVBUHJDGCY
SOVMPWQBMWNURDEALASGVNHCYUTOGKTKY...

First Run Output

01000111101011110101100110010110001111010011111000
01111011111010100000011011110111010000101000110000
11110101010000001110001110010110111010010000110100
10000111001001010101000100111011110110111011101000
01001010001101100101110111000100100110110110011000
010010110110001010000100100001100100000011101...

Second Run Input

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

Second Run Output

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

result:

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

Test #10:

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

First Run Input

prepare
100
SQROXGJWGXFMMKUNTEIRNLEVAYLHDHQPPBCSJIWFUYVCTADBKO
PKYCKEOOYJVXPWFGVDJBEULHWQTCAHLMAMURBFQGTIXSRISNND
UOOAMTVCCXBSEKWXPGWSRBNYNLIHJYJITFADEHKPRFDMQQVUGL
YEFEDNPRNSWMCWBAKSQQRBGLXKOILXTDAGJUVYUMVHHCJIFOTP
AVXANGTWWEBDESYBMQHOVRXCLFKDIGJSTJPQFYRCHIKMNLOPUU
OJNYRXLJHGGWFMDDMOPKYTHTUAKLNICIE...

First Run Output

11000101111011001010001110010000010000100101100100
00110000100000010011011000101011100001001000001000
11110101000001000111010100000101110100010011110000
10100111000001110111111000010010001100101010001000
11000000101001101000110110111000000100010000110000
100010111000001110001010100001110101110110011...

Second Run Input

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

Second Run Output

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

result:

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

Test #11:

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

First Run Input

prepare
100
RGFVPILWOVETBGSLKHKNCHJIOXAMPXNQSWJYUDRBMDAEYFQCTU
OLRHQVCXUYKWSEJPDYTFGKNVCASHMIDPNERUBOQJMBTGAXLIFW
KXYEEFLNYOGBNIUVVDTCRJDSHQISRAUWAQCTWLMPBHMJKXGFPO
BUXYMYPJMVFQKCIDQHEUOTITPKHLORXVGLASAGWDCJSBWNEFRN
TXKFEIVQISUBKTHXRDJCNOMPMGHNDCLPAWVBWUAEQSJRFYGOYL
PSRXNYTOKJMUFUTIRVMKBDXLJBCLFVGHA...

First Run Output

01100110110010110110010000111011101011110010000100
10100101110101000111011001100111101000011010110100
00110110110100010000100011110110100100110010001100
11010111001001111010100000010000011010010111111000
10110011110000110000110111100100010001000100010100
001101100101000010011010100001110101011100111...

Second Run Input

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

Second Run Output

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

result:

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

Test #12:

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

First Run Input

prepare
100
VJXSDLHVPDTYCWKILGXUIJANAHYSMUWBRRQTCENEPFFOKBGMOQ
BVAFIMQXPHKTKJWSLITNXOEVCFYCOQADGSGDWUPLHNBJRUEMYR
RLPSNKYDCLUMVDTHJYIHWQSGRBNXUFOFAAGEQTKCPVJEWBMOIX
IBFYNHNRSYOHXPGGKBFCSUMOJLUPKVAQMTCLDWREWQDTAVXIEJ
KGRTAINBFADUHILYMBEOPECVXQPDOWWTJSKMGQSVRUHLCNFXYJ
ETFGMNTHGOKBXNMELFBWCARUHICYJRWSX...

First Run Output

11100010101001001011011010010000001010011000010100
01010111101001111010011010001011110110111000101000
00011010010000010101101001011001100110001010110000
11110110001001001010010001100011010001100100101000
01000100100100010111111010010010110010110110001000
111100011000100010000100011100101100000110110...

Second Run Input

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

Second Run Output

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

result:

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

Test #13:

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

First Run Input

prepare
100
MOHGEABJDDXQJMYVSPKBWONVTCPLWSQRFEKUNUHTLCXYIAFIGR
LOFDRVYTQJXQHRTKMBHCEVSAUUIFAEXLMOGIKPBYNWNWCJPGSD
EJBMJEYAAUDIPOTXILRCUQSDNKVPRYFCKMLSQGWFTVXOHNBHWG
MHKMCDGVOQRWJBFSKLSGTYUDWOIAIUPCYTQPNEHBNJRAFXXVEL
AVRXEJCFQXWBYTQRSWYHOBUPUNGSDMHILCNLFKJKMDGEOITAPV
IRLQBTAYITACMJROOJHYNHSPBQLNEVWGX...

First Run Output

10110010101001100100001110000110110111001000110000
11111010000111011010001110110010101011100101110000
10100000100001110110000110111000010000101011101000
11000001100100001011111011101011001011110110011000
11110110001111110010010011010101100110000100100100
000100011100010110100110000110100100010100110...

Second Run Input

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

Second Run Output

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

result:

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

Test #14:

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

First Run Input

prepare
100
KVKFHJETMUGYIINCNCXOSBTFLAAQERRDPVHJUXWDPQYWOMLSBG
RKGEAFBUDOEJVNHJBSTOAHIWMWKFCPCYYVITXGXQUDLQSNLRMP
VFSDMWJQNEGIOKCAQFCUJHRBPLWLMUPOASHKYETNTXGDXRVBIY
AUELFVXFMCRTRVDAOJQWJKMQLEUKWSHXGIYHNNBOPBTPGCYSDI
MGTWHRVJKOPGAYSEXKCJIQRYPDXNBTEFBOWACHSLINLUVUDQFM
CAVGCIHTJQXHKTPQOLADBJDMGUWYENMLV...

First Run Output

01000010000111101001000111000100111001101010110100
11110101011010100101010000101011011000001000010100
01110110001010000111010100111001011000101000001000
11110001011010011000011011100010110011111001101000
10001111010010111001000110100101101000110111001000
001000010010000001000110000101110100101100101...

Second Run Input

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

Second Run Output

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

result:

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

Test #15:

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

First Run Input

prepare
100
HXKQHJLCSAEPANTBUFWEUTDPXRRDMQGOKMSBFWVCVLONYYIGJI
FHATBVFQWOIECJDGBSLKREDMQYNOTACNMKSJVULXGYIPPURWXH
JVWOTSJAXCAPFURISNLKXYEHWMPIOHGFUQBCRQVMLYEGDBDNTK
TOWIKXQPDRLAHPNUGUNKIRBECJYSQYMEFSDACFLXHVMJGTWBVO
WTBUHJHOXMQNYCGNQBSKUVPFOFGILTXYLARSEDCRVIWAEJMPDK
VHYQVKEJMPWUDBTWSMKIAGTEFGSYDUCCJ...

First Run Output

00100000011000000110111000001110010111100101000100
01100010001110111000111000001000100100011011110100
01100001100100011000111000001100001001010000101000
10110110001101110100101011001011100100111010110000
01010110111010001000101001100010110100011001111000
001000000011110110101001010010111010000001100...

Second Run Input

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

Second Run Output

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

result:

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

Test #16:

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

First Run Input

prepare
100
SCMKNXOIGSNYXFERVPAEUQHDULFWTCLIRKMJPOHBBYGJTDVQWA
XGAPSFERTQDFUWOJHLRPYNXIOVSBQTJDGCVKKAMCIUBMLNYEHW
OTQJRXSJVDUSNDIPTGYBIRAMWBEFXFCLEKHGMKQAYHOLNPUCVW
GTPJIHXDRBSYWEECOUYLWNLCXPMJFUAAMOGTVDHQRNFVKQKIBS
URSEIOWGQPCNVFDRMNIUJASLAEBBKFYHJYGVMOXDKWTQXPTCHL
ONFBMGMEDKCRRWCKPABJPDIHIYUGWQXSU...

First Run Output

10010010111001000110000101010000110010100111111000
01101000000110100111001001011011010011110101001000
01010100001001100111100010101000111011010000001100
01000111000110011011011011110101100100011010100100
11001011110001101010011001001010100110010101000100
001001011001000101010010011000110110111101101...

Second Run Input

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

Second Run Output

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

result:

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

Test #17:

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

First Run Input

prepare
100
NNODHVLKIUVAYTXEBRPAPWXGHYJBOMRSSGKFUIQMFWQLTCJEDC
HANGPOYBUGIFVTKOXXWBFRQAJLMYLMPUWCJEREKCVNDSIQSHDT
ORBBPYTLJSQVISIAGHLGUREEOKAXFKYUJQXDMHNCTNCMDWFWPV
GIAKBSRKPITXAVCLFEWDQFVNJJHXOGRMMYDEHUONTBWPUSCQLY
PXIMBIELUQGORGWAKHNJQJBYFTNTKAPDDVVCHOSYLURFMCESXW
GWUXITHXWIKOVQLSENPLYKDNCQPCJFBRM...

First Run Output

10000000111000001100011001010011010101000110100100
11110111101010010110010001111011110011011011001000
00011010101011000000001101111000010101001000000100
10111010010000110011100010010110110101111011010100
01111000001110100000110101101001110100010110010100
100001000100100011111000100100001101001001101...

Second Run Input

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

Second Run Output

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

result:

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