QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#482903#7186. "Memo" Game With a HintPedro_SimAC ✓0ms3892kbC++202.1kb2024-07-18 00:43:362024-07-18 00:43:36

Judging History

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

  • [2024-07-18 00:43:36]
  • 评测
  • 测评结果:AC
  • 用时:0ms
  • 内存:3892kb
  • [2024-07-18 00:43:36]
  • 提交

answer

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rp(i,a,b)        for(int i=a;i<b;i++)

void solvetask1(){
    string temp, resp="";
    cin >> temp;
    rp(i, 0, 10){
        int comp = temp[i]-'A';
        string temp2="";
        rp(i, 0, 5) temp2 += '0' + (((1<<i)&comp)>0);
        reverse(temp2.begin(), temp2.end());
        resp += temp2;
    }
    cout << resp << "\n";
}

void solvetask2(){
    string a;
    cin >> a;
    vector<char> pala(50, '!');
    vector<bool> used(50);
    rp(i, 0, 10){
        int comp = 0;
        for(int k = 4; k >= 0; k--) comp += ((a[i*5 + (4-k)]-'0')<<k);
        pala[i] = 'A' + comp;
    }
    rp(i, 10, 50){
        bool f = false;
        if(used[i]) continue;
        cout << i+1 << endl;
        fflush (stdout);
        char resp, temp;
        cin >> resp >> temp;
        pala[i] = resp;
        int id = -1;
        rp(j, 0, i) if(pala[j] == resp){
            id = j;
            break;
        } 
        if(id == -1){
            id = i+1;
            f = true;
        } 
        
        cout << id+1 << endl;
        fflush (stdout);
        cin >> resp >> temp;
        if(temp == '+' || temp == '!'){
            used[i] = true;
            used[id] = true;
            if(temp == '!') break;
        }
        pala[id] = resp;
        if(f) i++;
    }
    rp(i, 0, 50) if(!used[i]){
        cout << i+1 << endl;
        fflush (stdout);
        char resp, temp;
        cin >> resp >> temp;
        int id = -1;
        rp(j, i+1, 50) if(pala[j] == resp){
            id = j;
            break;
        } 
        cout << id+1 << endl;
        fflush (stdout);
        cin >> resp >> temp;
        if(temp == '+' || temp == '!'){
            used[i] = true;
            used[id] = true;
            if(temp == '!') break;
        }
    }
    //for(auto i: pala) cout << i << endl;
}

int main(){
    cin.tie(0)->sync_with_stdio(0);
    string t;
    cin >> t;
    int te;
    cin >> te;
    while(te--){
        if(t == "prepare") solvetask1();
        else solvetask2();
    } 
}

详细

Test #1:

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

First Run Input

prepare
2
ABCDEFGHIJKLMNOPQRSTUVWXYABCDEFGHIJKLMNOPQRSTUVWXY
AABBCCDDEEFFGGHHIIJJKKLLMMNNOOPPQQRRSSTTUUVVWWXXYY

First Run Output

00000000010001000011001000010100110001110100001001
00000000000000100001000100001000011000110010000100

Second Run Input

play
2
00000000010001000011001000010100110001110100001001
K.
L-
M.
N-
O.
P-
Q.
R-
S.
T-
U.
V-
W.
X-
Y.
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+
A.
A!
00000000000000100001000100001000011000110010...

Second Run Output

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

result:

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

Test #2:

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

First Run Input

prepare
1
FNETFOMMJTYCXKCRYLGXKSPAIVQNBURJAPQHUDWSDWVIHGELBO

First Run Output

00101011010010010011001010111001100011000100110011

Second Run Input

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

Second Run Output

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

result:

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

Test #3:

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

First Run Input

prepare
50
FDAVHJWICNELMBTQGPMHCYSTUUKWOYBJNRLGEFXXSIVOAQDRKP
NPBEHYAERLSHAKCMGTQFUYXDVUIWDPBSOXCMFRJOJTNKIGLQWV
AEFGFISMPACJJYRBXUCKNOPEHODITLXWSMGVWBDQKLUQHRYVTN
CKFXOIQOLCSHAGDEUJTYBAVKWPMHDBJNRMFXTEYQUGVNPILWRS
JYIRTLMHQGUUAEDJXTSDCKPCXWPBAWHQRMGNLONVOYEKFVBIFS
IHDCXSWTUHOFXLGLGWJPACUVTBOESDMYAK...

First Run Output

00101000110000010101001110100110110010000001001101
01101011110000100100001111100000000001001000101011
00000001000010100110001010100010010011000111100000
00010010100010110111011100100010000011100101100010
01001110000100010001100110101101100001111000000110
010000011100011000101011110010101101001110100...

Second Run Input

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

Second Run Output

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

result:

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

Test #4:

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

First Run Input

prepare
75
EAHSMUJLVDPNLEKPCNIICFRTMHYWVSTQBBWRXKFDXOJQUAGGOY
CUWYVQJPSRIDKXMKTFXTFDOJVWLBEMNULIAAPYCHNGHEOGSRQB
UJTQMFLPJRGSECWAHXDCIVRQOIEPANHUBYVGFKMKLDTSWYBNOX
EYOUSDBNEQXIPMFUJCYKJVLSVWOXKLCFWARPBTIHGTMNDRGHAQ
PBHANSDUVHNKYRQVMOBLQAXSEXOLYJRGTWCFKGMWPJIFTIEDCU
YREKISUWLRFFQDIWNUASLJXGMVHBXDMBJT...

First Run Output

00100000000011110010011001010001001010111010100011
00010101001011011000101011000001001011111001010001
10100010011001110000011000010101011011110100110001
00100110000111010100100100001100001011010010010000
01111000010011100000011011001000011101001010100111
110001000100100010100100010010101001011001011...

Second Run Input

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

Second Run Output

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

result:

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

Test #5:

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

First Run Input

prepare
85
RSHXLIARGTANBOIMVCQUCBGQWEDTPMYJWYUFPKESKJODLNFVXH
GEFNCRFLXMNOJGIQPLMSBKHDVIUVCHRAAUYWQBPTWYXSJOTEDK
PNCEFQSMQNOUJPKTWEAHFSRKGCIVJXXLRHLYBWGODVBYDUTAIM
EBFQNGFUKBOYENJSUTTPKPVSIRADCMVRHAHMDCLGLXQXIOJYWW
OSYHICRXEQAMWBDUDWANLLNCVBTXMTGEPJYPGFSKIJFHUKRQOV
SESXRAXOUIGPVJUNLMJFYEBVFCOBDQHKGW...

First Run Output

10001100100011110111010110100000000100010011010011
00110001000010101101000101000100101010111011101100
01111011010001000100001011000010010011001000001101
00100000010010110000011010011000101101000101000001
01110100101100000111010000001010001101110010010000
100100010010010101111000100000101110111010100...

Second Run Input

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

Second Run Output

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

result:

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

Test #6:

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

First Run Input

prepare
90
HPBUYCSIRIQTEVJLTDYGMNBEKMSFHNCRXVDAUFQAWPLGJWKOXO
DGTONCNKSQVCREJMUPOGFWIQPALERLASDYBFVIWKXHTMXBJUHY
KODTYFIXXRTNWNCUSLOREEBCUJPABHIDVGLGJMYKWMSQHAPQVF
BGTFHKOEJPGLWJIHPWAYVDKIFXSUUQYTENNVCMDRMOASRBXCLQ
YSJXTDDMCLKFFBOWVRCSHNPTGARXJQPBKMYWUEAUNGEIIQVHOL
QTXVHWNRFUOHCPMGWMLFRSCQKGEIPKEADY...

First Run Output

00111011110000110100110000001010010010001000101000
00011001101001101110011010001001101010101001010000
01010011100001110011110000010101000101111011110001
00001001101001100101001110101001110001000100101111
11000100100100110111100110001100011011000001001011
100001001110111101010011110110011011000100101...

Second Run Input

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

Second Run Output

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

result:

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

Test #7:

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

First Run Input

prepare
95
CXKFQPTEDJGCNSIWIDLVHJBTMEUMLQVYOHGPKNRYOFXRSBUWAA
DKGIBMTPLXOCTJEVQYVUMAFHNXEOCRDPNQHSUGSWAJRIFYBWKL
QHTADVKMABFWXHRLNICEGJOCPXWTYNVMBESJURIODUGFLYSKQP
WPTDMLIIEOWCKYSSREBDBFXNQGVNXAPVJHYLUKUCGHQRAFJMOT
PUYIWXOSXDQNITNCYWFEKGHPLKVJABJQTUSVRMLCEDFMGAOBHR
YFMQKSXVBUIYLCBRDWWNVFHTTMRHUDOGLA...

First Run Output

00010101110101000101100000111110011001000001101001
00011010100011001000000010110010011011110101110111
10000001111001100000000111010101010011000000000001
10110011111001100011011000101101000010000010001110
01111101001100001000101101011101110100101011100011
110000010101100100000101010010101111010100001...

Second Run Input

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

Second Run Output

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

result:

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

Test #8:

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

First Run Input

prepare
100
NKXFSXFWWAOBPEJOTMVHIPUKCGQSRLCRHYNVDMETALGIJQUDBY
LQEXDPFVMOMABELGPHCWBJTVCTNYXGRYWJUQKFIHOSNSKAIURD
MBTKVSCAPAXWHBEHUSQOGYJIUVTNEIRPFYQXJORNLFDCMKWDGL
EBBOJXCXNECGAQQALWPPMJVTGSHIORNMHRDFSYUYLFIUVDKWKT
GKOAHWLYQXVKCLRRTCYMFBSQUPDIWIJPVGDFMNAUTSJXHBEEON
EQEDVJGKUIXMCYQTANIHSADKWRNFYBGOT...

First Run Output

01101010101011100101100101011100101101101011000000
01011100000010010111000110111100101101010110001110
01100000011001101010101011001000010000000111100000
00100000010000101110010011011100010101110110100100
00110010100111000000001111011001011110001000010111
001001000000100000111010101001001100101010100...

Second Run Input

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

Second Run Output

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

result:

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

Test #9:

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

First Run Input

prepare
100
BULRJTVXIHFVSKOMPWMCGENUNYAKIQQXSPBADERWHJCYFDOLGT
FIHEGHKMALOKAVTSYYWTMQJCERQNBLFIOPSBDUCXVNRWJXUGPD
IGMAXBJVQJGTTPKQCFEEUWRSONNSHBRKUPWHCDDYLXFYVLOIMA
FKYUXTNHQBVLPWEOPREKVIMHCOJLXNDGBFUGIRSASJYADMWTCQ
RYIDFMJOWUBQNXLWNCRSSGKTXOHPVKTEPAAFMEILQVBUHJDGCY
SOVMPWQBMWNURDEALASGVNHCYUTOGKTKY...

First Run Output

00001101000101110001010011001110101101110100000111
00101010000011100100001100011101010011000000001011
01000001100110000000101110000101001101011000001001
00101010101100010100101111001101101001111000000001
10001110000100000011001010110001001011101011010100
100100111010101011000111110110100000000101100...

Second Run Input

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

Second Run Output

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

result:

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

Test #10:

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

First Run Input

prepare
100
SQROXGJWGXFMMKUNTEIRNLEVAYLHDHQPPBCSJIWFUYVCTADBKO
PKYCKEOOYJVXPWFGVDJBEULHWQTCAHLMAMURBFQGTIXSRISNND
UOOAMTVCCXBSEKWXPGWSRBNYNLIHJYJITFADEHKPRFDMQQVUGL
YEFEDNPRNSWMCWBAKSQQRBGLXKOILXTDAGJUVYUMVHHCJIFOTP
AVXANGTWWEBDESYBMQHOVRXCLFKDIGJSTJPQFYRCHIKMNLOPUU
OJNYRXLJHGGWFMDDMOPKYTHTUAKLNICIE...

First Run Output

10010100001000101110101110011001001101100011010111
01111010101100000010010100010001110011101100001001
10100011100111000000011001001110101000100001010111
11000001000010100100000110110101111100010110110010
00000101011011100000011010011010011101101011000100
011100100101101110001000110111010110100100111...

Second Run Input

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

Second Run Output

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

result:

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

Test #11:

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

First Run Input

prepare
100
RGFVPILWOVETBGSLKHKNCHJIOXAMPXNQSWJYUDRBMDAEYFQCTU
OLRHQVCXUYKWSEJPDYTFGKNVCASHMIDPNERUBOQJMBTGAXLIFW
KXYEEFLNYOGBNIUVVDTCRJDSHQISRAUWAQCTWLMPBHMJKXGFPO
BUXYMYPJMVFQKCIDQHEUOTITPKHLORXVGLASAGWDCJSBWNEFRN
TXKFEIVQISUBKTHXRDJCNOMPMGHNDCLPAWVBWUAEQSJRFYGOYL
PSRXNYTOKJMUFUTIRVMKBDXLJBCLFVGHA...

First Run Output

10001001100010110101011110100001011101100111010101
01110010111000100111100001010100010101111010011000
01010101111100000100001000010101011011011100001110
00001101001011111000011001100001111010010110010101
10011101110101000101001000100010101100000100010010
011111001010001101110110111000100110111001010...

Second Run Input

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

Second Run Output

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

result:

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

Test #12:

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

First Run Input

prepare
100
VJXSDLHVPDTYCWKILGXUIJANAHYSMUWBRRQTCENEPFFOKBGMOQ
BVAFIMQXPHKTKJWSLITNXOEVCFYCOQADGSGDWUPLHNBJRUEMYR
RLPSNKYDCLUMVDTHJYIHWQSGRBNXUFOFAAGEQTKCPVJEWBMOIX
IBFYNHNRSYOHXPGGKBFCSUMOJLUPKVAQMTCLDWREWQDTAVXIEJ
KGRTAINBFADUHILYMBEOPECVXQPDOWWTJSKMGQSVRUHLCNFXYJ
ETFGMNTHGOKBXNMELFBWCARUHICYJRWSX...

First Run Output

10101010011011110010000110101100111101010111100011
00001101010000000101010000110010000101110111100111
10001010110111110010011010101011000000110001001011
01000000010010111000011010011101101100011001011000
01010001101000110011000000100001101000010010100000
001001001100101001100110001101100110011100110...

Second Run Input

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

Second Run Output

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

result:

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

Test #13:

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

First Run Input

prepare
100
MOHGEABJDDXQJMYVSPKBWONVTCPLWSQRFEKUNUHTLCXYIAFIGR
LOFDRVYTQJXQHRTKMBHCEVSAUUIFAEXLMOGIKPBYNWNWCJPGSD
EJBMJEYAAUDIPOTXILRCUQSDNKVPRYFCKMLSQGWFTVXOHNBHWG
MHKMCDGVOQRWJBFSKLSGTYUDWOIAIUPCYTQPNEHBNJRAFXXVEL
AVRXEJCFQXWBYTQRSWYHOBUPUNGSDMHILCNLFKJKMDGEOITAPV
IRLQBTAYITACMJROOJHYNHSPBQLNEVWGX...

First Run Output

01100011100011100110001000000000001010010001100011
01011011100010100011100011010111000100111000001001
00100010010000101100010010010011000000000000010100
01100001110101001100000100001100110101010111010000
00000101011000110111001000100100010001011000010111
010001000101011100000000110011000001100001000...

Second Run Input

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

Second Run Output

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

result:

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

Test #14:

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

First Run Input

prepare
100
KVKFHJETMUGYIINCNCXOSBTFLAAQERRDPVHJUXWDPQYWOMLSBG
RKGEAFBUDOEJVNHJBSTOAHIWMWKFCPCYYVITXGXQUDLQSNLRMP
VFSDMWJQNEGIOKCAQFCUJHRBPLWLMUPOASHKYETNTXGDXRVBIY
AUELFVXFMCRTRVDAOJQWJKMQLEUKWSHXGIYHNNBOPBTPGCYSDI
MGTWHRVJKOPGAYSEXKCJIQRYPDXNBTEFBOWACHSLINLUVUDQFM
CAVGCIHTJQXHKTPQOLADBJDMGUWYENMLV...

First Run Output

01010101010101000101001110100100100100110110010100
10001010100011000100000000010100001101000001101110
10101001011001000011011001011001001100000110100100
00000101000010001011001011010110111001010110000010
01100001101001110110001111000110101010010101001110
000100000010101001100001001000001111001101001...

Second Run Input

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

Second Run Output

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

result:

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

Test #15:

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

First Run Input

prepare
100
HXKQHJLCSAEPANTBUFWEUTDPXRRDMQGOKMSBFWVCVLONYYIGJI
FHATBVFQWOIECJDGBSLKREDMQYNOTACNMKSJVULXGYIPPURWXH
JVWOTSJAXCAPFURISNLKXYEHWMPIOHGFUQBCRQVMLYEGDBDNTK
TOWIKXQPDRLAHPNUGUNKIRBECJYSQYMEFSDACFLXHVMJGTWBVO
WTBUHJHOXMQNYCGNQBSKUVPFOFGILTXYLARSEDCRVIWAEJMPDK
VHYQVKEJMPWUDBTWSMKIAGTEFGSYDUCCJ...

First Run Output

00111101110101010000001110100101011000101001000000
00101001110000010011000011010100101100001011001110
01001101011011001110100111001001001000001011100010
10011011101011001000010101011110000011110001110001
10110100110000110100001110100100111011101011101100
101010011111000100001010101010001000100101100...

Second Run Input

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

Second Run Output

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

result:

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

Test #16:

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

First Run Input

prepare
100
SCMKNXOIGSNYXFERVPAEUQHDULFWTCLIRKMJPOHBBYGJTDVQWA
XGAPSFERTQDFUWOJHLRPYNXIOVSBQTJDGCVKKAMCIUBMLNYEHW
OTQJRXSJVDUSNDIPTGYBIRAMWBEFXFCLEKHGMKQAYHOLNPUCVW
GTPJIHXDRBSYWEECOUYLWNLCXPMJFUAAMOGTVDHQRNFVKQKIBS
URSEIOWGQPCNVFDRMNIUJASLAEBBKFYHJYGVMOXDKWTQXPTCHL
ONFBMGMEDKCRRWCKPABJPDIHIYUGWQXSU...

First Run Output

10010000100110001010011011011101110010000011010010
10111001100000001111100100010100100100011001110000
01110100111000001001100011011110010010011010100011
00110100110111101001010000011110111000111000100001
10100100011001000100010000111010110001101000001111
011100110100101000010110000110011000010000011...

Second Run Input

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

Second Run Output

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

result:

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

Test #17:

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

First Run Input

prepare
100
NNODHVLKIUVAYTXEBRPAPWXGHYJBOMRSSGKFUIQMFWQLTCJEDC
HANGPOYBUGIFVTKOXXWBFRQAJLMYLMPUWCJEREKCVNDSIQSHDT
ORBBPYTLJSQVISIAGHLGUREEOKAXFKYUJQXDMHNCTNCMDWFWPV
GIAKBSRKPITXAVCLFEWDQFVNJJHXOGRMMYDEHUONTBWPUSCQLY
PXIMBIELUQGORGWAKHNJQJBYFTNTKAPDDVVCHOSYLURFMCESXW
GWUXITHXWIKOVQLSENPLYKDNCQPCJFBRM...

First Run Output

01101011010111000011001111010101011010100100010100
00111000000110100110011110111011000000011010000110
01110100010000100001011111100010011010110100110010
00110010000000001010000011001010001010100111101000
01111101110100001100000010100000100010111010010000
001101011010100101110100010011001111011110110...

Second Run Input

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

Second Run Output

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

result:

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