QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#250245#7186. "Memo" Game With a Hintkilo_tobo_tarjen#AC ✓1ms3832kbC++201.1kb2023-11-12 23:58:422023-11-12 23:58:42

Judging History

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

  • [2023-11-12 23:58:42]
  • 评测
  • 测评结果:AC
  • 用时:1ms
  • 内存:3832kb
  • [2023-11-12 23:58:42]
  • 提交

answer

#include <bits/stdc++.h>
using namespace std;
void solve1()
{
    string s;cin>>s;
    string g;
    set<char> se;
    for(auto it:s){
        if(se.find(it)!=se.end())g.push_back('0');
        else g.push_back('1');
        se.insert(it);
    }
    cout<<g<<endl;
}
string f(int x){
    cout<<x<<endl;
    string s;cin>>s;return s;
}
void solve2()
{
    string s;cin>>s;
    vector<int> a,b;
    for(int i=0;i<50;i++)if(s[i]=='0')a.push_back(i+1);
    else b.push_back(i+1);
    map<char,int>ma; 
    for(int i=0;i<25;i+=2){
        if(i!=24){
            string x=f(a[i]);
            string y=f(a[i+1]);
            ma[x[0]]=a[i];
            ma[y[0]]=a[i+1];
        }
        else{
            for(char g='A';g<='Y';g++)if(ma.find(g)==ma.end()){
                ma[g]=a[i];
            }
        }
    }
    for(auto it:b){
        string x=f(it);
        f(ma[x[0]]);
    }
}
int main()
{
    ios::sync_with_stdio(false);
    cin.tie(0);
    string s;cin>>s;
    int T;cin>>T;
    if(s=="prepare"){
        while(T--)solve1();
    }
    else{
        while(T--)solve2();
    }
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

First Run Input

prepare
2
ABCDEFGHIJKLMNOPQRSTUVWXYABCDEFGHIJKLMNOPQRSTUVWXY
AABBCCDDEEFFGGHHIIJJKKLLMMNNOOPPQQRRSSTTUUVVWWXXYY

First Run Output

11111111111111111111111110000000000000000000000000
10101010101010101010101010101010101010101010101010

Second Run Input

play
2
11111111111111111111111110000000000000000000000000
A.
B-
C.
D-
E.
F-
G.
H-
I.
J-
K.
L-
M.
N-
O.
P-
Q.
R-
S.
T-
U.
V-
W.
X-
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!
10101010101010101010...

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
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
1
2
3
4
5
6
7
8
9
1...

result:

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

Test #2:

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

First Run Input

prepare
1
FNETFOMMJTYCXKCRYLGXKSPAIVQNBURJAPQHUDWSDWVIHGELBO

First Run Output

11110110101111010110011111101100000101100000000000

Second Run Input

play
1
11110110101111010110011111101100000101100000000000
F.
M-
T.
C-
Y.
X-
K.
N-
R.
J-
A.
P-
Q.
U-
S.
D-
W.
V-
I.
H-
G.
E-
L.
B-
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
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 12 (1 test case)

Test #3:

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

First Run Input

prepare
50
FDAVHJWICNELMBTQGPMHCYSTUUKWOYBJNRLGEFXXSIVOAQDRKP
NPBEHYAERLSHAKCMGTQFUYXDVUIWDPBSOXCMFRJOJTNKIGLQWV
AEFGFISMPACJJYRBXUCKNOPEHODITLXWSMGVWBDQKLUQHRYVTN
CKFXOIQOLCSHAGDEUJTYBAVKWPMHDBJNRMFXTEYQUGVNPILWRS
JYIRTLMHQGUUAEDJXTSDCKPCXWPBAWHQRMGNLONVOYEKFVBIFS
IHDCXSWTUHOFXLGLGWJPACUVTBOESDMYAK...

First Run Output

11111111111111111100011010101000010000100000000000
11111110111001111111101110110000100000100000000000
11110111101101111101110010101101000100010000000000
11111110101111111111101011100001100000000000000000
11111111111011101010111001010000000101010000100000
111111111011011000111001010100110100010001010...

Second Run Input

play
50
11111111111111111100011010101000010000100000000000
M.
H-
C.
T-
U.
W-
Y.
B-
J.
N-
L.
G-
E.
F-
X.
S-
I.
V-
O.
A-
Q.
D-
R.
K-
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!
1111111011100111111...

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
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
1
43
2
30
3
31
4...

result:

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

Test #4:

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

First Run Input

prepare
75
EAHSMUJLVDPNLEKPCNIICFRTMHYWVSTQBBWRXKFDXOJQUAGGOY
CUWYVQJPSRIDKXMKTFXTFDOJVWLBEMNULIAAPYCHNGHEOGSRQB
UJTQMFLPJRGSECWAHXDCIVRQOIEPANHUBYVGFKMKLDTSWYBNOX
EYOUSDBNEQXIPMFUJCYKJVLSVWOXKLCFWARPBTIHGTMNDRGHAQ
PBHANSDUVHNKYRQVMOBLQAXSEXOLYJRGTWCFKGMWPJIFTIEDCU
YREKISUWLRFFQDIWNUASLJXGMVHBXDMBJT...

First Run Output

11111111111100101010011100110001100010000100001000
11111111111111101100001000111010001000010100000000
11111111011111111110110010000100110001000000000000
11111111011111101101011001000000011001011000000000
11111111100111101101001010000101111100000010000000
111111111010110010100111111100000110000100001...

Second Run Input

play
75
11111111111100101010011100110001100010000100001000
L.
E-
P.
N-
I.
C-
M.
H-
V.
S-
T.
B-
W.
R-
K.
F-
D.
X-
J.
Q-
U.
A-
G.
O-
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!
1111111111111110110...

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
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
1
39
2
32
3
26
...

result:

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

Test #5:

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

First Run Input

prepare
85
RSHXLIARGTANBOIMVCQUCBGQWEDTPMYJWYUFPKESKJODLNFVXH
GEFNCRFLXMNOJGIQPLMSBKHDVIUVCHRAAUYWQBPTWYXSJOTEDK
PNCEFQSMQNOUJPKTWEAHFSRKGCIVJXXLRHLYBWGODVBYDUTAIM
EBFQNGFUKBOYENJSUTTPKPVSIRADCMVRHAHMDCLGLXQXIOJYWW
OSYHICRXEQAMWBDUDWANLLNCVBTXMTGEPJYPGFSKIJFHUKRQOV
SESXRAXOUIGPVJUNLMJFYEBVFCOBDQHKGW...

First Run Output

11111110110111011111000011101011000101000000000000
11111101110110111001111110100001001100010000000000
11111111001110111011001010110101000110001000000000
11111101101100110101001011111100100000100100000010
11111111111111110001100010100010110001010000000000
110111011111110111011010010011110100100000000...

Second Run Input

play
85
11111110110111011111000011101011000101000000000000
R.
A-
I.
C-
B.
G-
Q.
T-
M.
W-
Y.
U-
P.
E-
S.
K-
J.
O-
D.
L-
N.
F-
V.
X-
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!
1111110111011011100...

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
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
1
14
2
48
3
7
4
1...

result:

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

Test #6:

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

First Run Input

prepare
90
HPBUYCSIRIQTEVJLTDYGMNBEKMSFHNCRXVDAUFQAWPLGJWKOXO
DGTONCNKSQVCREJMUPOGFWIQPALERLASDYBFVIWKXHTMXBJUHY
KODTYFIXXRTNWNCUSLOREEBCUJPABHIDVGLGJMYKWMSQHAPQVF
BGTFHKOEJPGLWJIHPWAYVDKIFXSUUQYTENNVCMDRMOASRBXCLQ
YSJXTDDMCLKFFBOWVRCSHNPTGARXJQPBKMYWUEAUNGEIIQVHOL
QTXVHWNRFUOHCPMGWMLFRSCQKGEIPKEADY...

First Run Output

11111111101111110101110010010000100100001000000100
11111101111011111100111001100000011000001100000000
11111111010110111100101001110100110001000001000000
11111111110110100011110001110100010011010000000000
11111101111101111100111011000100000011000001000000
111111111110111100100100101100011100001000000...

Second Run Input

play
90
11111111101111110101110010010000100100001000000100
I.
T-
Y.
B-
E.
M-
S.
H-
N.
C-
R.
V-
D.
U-
F.
Q-
A.
P-
L.
G-
J.
W-
K.
X-
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!
1111110111101111110...

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
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
1
33
2
20
3
43
4...

result:

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

Test #7:

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

First Run Input

prepare
95
CXKFQPTEDJGCNSIWIDLVHJBTMEUMLQVYOHGPKNRYOFXRSBUWAA
DKGIBMTPLXOCTJEVQYVUMAFHNXEOCRDPNQHSUGSWAJRIFYBWKL
QHTADVKMABFWXHRLNICEGJOCPXWTYNVMBESJURIODUGFLYSKQP
WPTDMLIIEOWCKYSSREBDBFXNQGVNXAPVJHYLUKUCGHQRAFJMOT
PUYIWXOSXDQNITNCYWFEKGHPLKVJABJQTUSVRMLCEDFMGAOBHR
YFMQKSXVBUIYLCBRDWWNVFHTTMRHUDOGLA...

First Run Output

11111111111011110011101010100001100000100000000010
11111111111101111101011110000100000100010000000000
11111111011110111111111010001000001010000000000000
11111110110111101010011111100100110010000000000000
11111111011101010011111010111100000011000000000000
111111111110110111010011000000110110000001000...

Second Run Input

play
95
11111111111011110011101010100001100000100000000010
C.
I-
D.
J-
T.
E-
M.
L-
Q.
V-
H.
G-
P.
K-
N.
Y-
O.
F-
X.
R-
S.
B-
U.
W-
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!
1111111111110111110...

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
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
1
31
2
49
3
38
...

result:

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

Test #8:

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

First Run Input

prepare
100
NKXFSXFWWAOBPEJOTMVHIPUKCGQSRLCRHYNVDMETALGIJQUDBY
LQEXDPFVMOMABELGPHCWBJTVCTNYXGRYWJUQKFIHOSNSKAIURD
MBTKVSCAPAXWHBEHUSQOGYJIUVTNEIRPFYQXJORNLFDCMKWDGL
EBBOJXCXNECGAQQALWPPMJVTGSHIORNMHRDFSYUYLFIUVDKWKT
GKOAHWLYQXVKCLRRTCYMFBSQUPDIWIJPVGDFMNAUTSJXHBEEON
EQEDVJGKUIXMCYQTANIHSADKWRNFYBGOT...

First Run Output

11111001011111101111101011101100010010000000000000
11111111110110010111011000110010001010100100000000
11111111101110101011111100010010100000001010000000
11011110100111001110101101110100001101100000001000
11111111111010101001111011110010000001000000001000
110111111111110111011000110101010000000010100...

Second Run Input

play
100
11111001011111101111101011101100010010000000000000
X.
F-
W.
O-
P.
K-
S.
C-
R.
H-
N.
V-
M.
E-
T.
A-
L.
G-
I.
J-
Q.
U-
D.
B-
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!
111111111101100101...

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
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
1
15
2
36
3
14
4
2...

result:

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

Test #9:

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

First Run Input

prepare
100
BULRJTVXIHFVSKOMPWMCGENUNYAKIQQXSPBADERWHJCYFDOLGT
FIHEGHKMALOKAVTSYYWTMQJCERQNBLFIOPSBDUCXVNRWJXUGPD
IGMAXBJVQJGTTPKQCFEEUWRSONNSHBRKUPWHCDDYLXFYVLOIMA
FKYUXTNHQBVLPWEOPREKVIMHCOJLXNDGBFUGIRSASJYADMWTCQ
RYIDFMJOWUBQNXLWNCRSSGKTXOHPVKTEPAAFMEILQVBUHJDGCY
SOVMPWQBMWNURDEALASGVNHCYUTOGKTKY...

First Run Output

11111111111011111101111001100100000010000000000000
11111011111001111010011101011000010011010000000000
11111111100101101110111111001000000001011000000000
11111111111111110100011010100011000000110000000000
11111111111111100101011100111001010000000000000000
111111110011111110010011101001000010000110000...

Second Run Input

play
100
11111111111011111101111001100100000010000000000000
V.
M-
U.
N-
K.
I-
Q.
X-
S.
P-
B.
A-
E.
R-
W.
H-
J.
C-
Y.
F-
D.
O-
L.
G-
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!
111110111110011110...

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
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
1
31
2
32
3
6
4
...

result:

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

Test #10:

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

First Run Input

prepare
100
SQROXGJWGXFMMKUNTEIRNLEVAYLHDHQPPBCSJIWFUYVCTADBKO
PKYCKEOOYJVXPWFGVDJBEULHWQTCAHLMAMURBFQGTIXSRISNND
UOOAMTVCCXBSEKWXPGWSRBNYNLIHJYJITFADEHKPRFDMQQVUGL
YEFEDNPRNSWMCWBAKSQQRBGLXKOILXTDAGJUVYUMVHHCJIFOTP
AVXANGTWWEBDESYBMQHOVRXCLFKDIGJSTJPQFYRCHIKMNLOPUU
OJNYRXLJHGGWFMDDMOPKYTHTUAKLNICIE...

First Run Output

11111111001101111110010111011001011000000000000000
11110110011101110101011101101001000100000101000100
11011111011111101100101101111000010100000000100000
11101111011110111010001110110010001110000100000000
11101111011101101111010111101010001000000000000010
111111101101111000110100110001101011101000000...

Second Run Input

play
100
11111111001101111110010111011001011000000000000000
G.
X-
M.
R-
N.
E-
L.
H-
Q.
P-
S.
J-
I.
W-
F.
U-
Y.
V-
C.
T-
A.
D-
B.
K-
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!
111101100111011101...

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
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
1
13
2
5
3
9
4
28
6...

result:

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

Test #11:

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

First Run Input

prepare
100
RGFVPILWOVETBGSLKHKNCHJIOXAMPXNQSWJYUDRBMDAEYFQCTU
OLRHQVCXUYKWSEJPDYTFGKNVCASHMIDPNERUBOQJMBTGAXLIFW
KXYEEFLNYOGBNIUVVDTCRJDSHQISRAUWAQCTWLMPBHMJKXGFPO
BUXYMYPJMVFQKCIDQHEUOTITPKHLORXVGLASAGWDCJSBWNEFRN
TXKFEIVQISUBKTHXRDJCNOMPMGHNDCLPAWVBWUAEQSJRFYGOYL
PSRXNYTOKJMUFUTIRVMKBDXLJBCLFVGHA...

First Run Output

11111111101110101101101001110001000111000000000000
11111111111111111011101001001100000010000000000000
11110111011101110111110111000101000000110000000000
11111011011111110110110000010100101100100000010000
11111111011100101111111101000010110000000000010000
111111111111100101001101001000111000010000000...

Second Run Input

play
100
11111111101110101101101001110001000111000000000000
V.
G-
L.
K-
H.
I-
O.
P-
X.
N-
S.
W-
J.
R-
B.
M-
D.
A-
E.
Y-
F.
Q-
C.
T-
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!
111111111111111110...

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
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
1
38
2
47
3
35
...

result:

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

Test #12:

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

First Run Input

prepare
100
VJXSDLHVPDTYCWKILGXUIJANAHYSMUWBRRQTCENEPFFOKBGMOQ
BVAFIMQXPHKTKJWSLITNXOEVCFYCOQADGSGDWUPLHNBJRUEMYR
RLPSNKYDCLUMVDTHJYIHWQSGRBNXUFOFAAGEQTKCPVJEWBMOIX
IBFYNHNRSYOHXPGGKBFCSUMOJLUPKVAQMTCLDWREWQDTAVXIEJ
KGRTAINBFADUHILYMBEOPECVXQPDOWWTJSKMGQSVRUHLCNFXYJ
ETFGMNTHGOKBXNMELFBWCARUHICYJRWSX...

First Run Output

11111110101111110101001100001001101001000101000000
11111111111101111001011010100001100001000000100000
11111111101110111010110101010110100100000000000000
11111101101011101001011011000111010011010000000000
11111111101110111011101111000100110000000000000000
111111010111100010011111010110010010101001000...

Second Run Input

play
100
11111110101111110101001100001001101001000101000000
V.
D-
L.
X-
I.
J-
A.
H-
Y.
S-
U.
W-
R.
T-
C.
N-
E.
P-
F.
K-
B.
G-
M.
O-
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!
111111111111011110...

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
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
1
43
2
24
3
31
4...

result:

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

Test #13:

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

First Run Input

prepare
100
MOHGEABJDDXQJMYVSPKBWONVTCPLWSQRFEKUNUHTLCXYIAFIGR
LOFDRVYTQJXQHRTKMBHCEVSAUUIFAEXLMOGIKPBYNWNWCJPGSD
EJBMJEYAAUDIPOTXILRCUQSDNKVPRYFCKMLSQGWFTVXOHNBHWG
MHKMCDGVOQRWJBFSKLSGTYUDWOIAIUPCYTQPNEHBNJRAFXXVEL
AVRXEJCFQXWBYTQRSWYHOBUPUNGSDMHILCNLFKJKMDGEOITAPV
IRLQBTAYITACMJROOJHYNHSPBQLNEVWGX...

First Run Output

11111111101100111110101011010001100100000000100000
11111111111010011101101110100000001001001100000000
11110011011111110111011011100010000001100000100000
11101111111111110100111000110010000011000000010000
11111111101111001001101101101101100001000000000000
111111110001110100101011000011111101101000000...

Second Run Input

play
100
11111111101100111110101011010001100100000000100000
D.
J-
M.
B-
O.
V-
P.
W-
S.
Q-
E.
K-
N.
U-
H.
T-
L.
C-
X.
Y-
A.
F-
I.
G-
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!
111111111110100111...

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
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
1
32
2
34
3
28
...

result:

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

Test #14:

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

First Run Input

prepare
100
KVKFHJETMUGYIINCNCXOSBTFLAAQERRDPVHJUXWDPQYWOMLSBG
RKGEAFBUDOEJVNHJBSTOAHIWMWKFCPCYYVITXGXQUDLQSNLRMP
VFSDMWJQNEGIOKCAQFCUJHRBPLWLMUPOASHKYETNTXGDXRVBIY
AUELFVXFMCRTRVDAOJQWJKMQLEUKWSHXGIYHNNBOPBTPGCYSDI
MGTWHRVJKOPGAYSEXKCJIQRYPDXNBTEFBOWACHSLINLUVUDQFM
CAVGCIHTJQXHKTPQOLADBJDMGUWYENMLV...

First Run Output

11011111111110110011110011010101100000100000000000
11111111110111100110001110001101000010010010000000
11111111111111110001011111000000000010100100000000
11111110111100101111010000000110111010101000000000
11111111111011111010110001011001000000010001000000
111101111110101011011001011111000111000000000...

Second Run Input

play
100
11011111111110110011110011010101100000100000000000
K.
I-
N.
C-
T.
F-
A.
E-
R.
V-
H.
J-
U.
X-
D.
P-
Q.
Y-
W.
O-
M.
L-
S.
B-
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!
111111111101111001...

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
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
1
48
2
27
3
38
4...

result:

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

Test #15:

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

First Run Input

prepare
100
HXKQHJLCSAEPANTBUFWEUTDPXRRDMQGOKMSBFWVCVLONYYIGJI
FHATBVFQWOIECJDGBSLKREDMQYNOTACNMKSJVULXGYIPPURWXH
JVWOTSJAXCAPFURISNLKXYEHWMPIOHGFUQBCRQVMLYEGDBDNTK
TOWIKXQPDRLAHPNUGUNKIRBECJYSQYMEFSDACFLXHVMJGTWBVO
WTBUHJHOXMQNYCGNQBSKUVPFOFGILTXYLARSEDCRVIWAEJMPDK
VHYQVKEJMPWUDBTWSMKIAGTEFGSYDUCCJ...

First Run Output

11110111111101111110001001001011000000100000101000
11111101111111110111100101100000000001010001000000
11111101110111110111011101000010011000000000100000
11111111111110111000001111110010100000000100000000
11111101111111100011011100011000011011000000000000
111101111111111010011100100000100001001110100...

Second Run Input

play
100
11110111111101111110001001001011000000100000101000
H.
A-
E.
U-
T.
P-
X.
R-
D.
Q-
K.
M-
S.
B-
F.
W-
C.
V-
L.
O-
N.
Y-
G.
J-
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!
111111011111111101...

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
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
1
7
2
50
3
30
4
2...

result:

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

Test #16:

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

First Run Input

prepare
100
SCMKNXOIGSNYXFERVPAEUQHDULFWTCLIRKMJPOHBBYGJTDVQWA
XGAPSFERTQDFUWOJHLRPYNXIOVSBQTJDGCVKKAMCIUBMLNYEHW
OTQJRXSJVDUSNDIPTGYBIRAMWBEFXFCLEKHGMKQAYHOLNPUCVW
GTPJIHXDRBSYWEECOUYLWNLCXPMJFUAAMOGTVDHQRNFVKQKIBS
URSEIOWGQPCNVFDRMNIUJASLAEBBKFYHJYGVMOXDKWTQXPTCHL
ONFBMGMEDKCRRWCKPABJPDIHIYUGWQXSU...

First Run Output

11111111100101111110111101011000000100010000000000
11111111111011111100110101010000010100100000000000
11111110111010110111001110110011011000000000000000
11111111111111011101010000101010000010010000100000
11111111111111101000110100101011000000100010000000
111111011111010011010011011001110111000000000...

Second Run Input

play
100
11111111100101111110111101011000000100010000000000
S.
N-
X.
E-
U.
F-
C.
L-
I.
R-
K.
M-
P.
O-
H.
B-
Y.
G-
J.
T-
D.
V-
Q.
W-
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!
111111111110111111...

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
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
1
23
2
33
3
38
...

result:

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

Test #17:

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

First Run Input

prepare
100
NNODHVLKIUVAYTXEBRPAPWXGHYJBOMRSSGKFUIQMFWQLTCJEDC
HANGPOYBUGIFVTKOXXWBFRQAJLMYLMPUWCJEREKCVNDSIQSHDT
ORBBPYTLJSQVISIAGHLGUREEOKAXFKYUJQXDMHNCTNCMDWFWPV
GIAKBSRKPITXAVCLFEWDQFVNJJHXOGRMMYDEHUONTBWPUSCQLY
PXIMBIELUQGORGWAKHNJQJBYFTNTKAPDDVVCHOSYLURFMCESXW
GWUXITHXWIKOVQLSENPLYKDNCQPCJFBRM...

First Run Output

10111111110111111110010100100101000100100000010000
11111111101111101010011011100000010100000011000000
11101111111110011100101001011000000110110000010000
11111110101101111111100110101001010001000000000000
11111011111110111111000111000001010100100000000000
111111100011111111101010100011111000000010000...

Second Run Input

play
100
10111111110111111110010100100101000100100000010000
N.
V-
A.
P-
X.
H-
Y.
B-
O.
R-
S.
G-
K.
U-
I.
M-
F.
W-
Q.
L-
T.
J-
E.
D-
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!
111111111011111010...

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
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
1
48
2
24
3
42
4...

result:

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