QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#176251#7186. "Memo" Game With a Hintucup-team045AC ✓1ms3864kbC++201.8kb2023-09-11 13:31:552023-09-11 13:31:57

Judging History

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

  • [2023-09-11 13:31:57]
  • 评测
  • 测评结果:AC
  • 用时:1ms
  • 内存:3864kb
  • [2023-09-11 13:31:55]
  • 提交

answer

#include<iostream>
#include<cstring>
#include<vector>
using namespace std;
using LL = long long;

int main(){

// #ifdef LOCAL
//     freopen("data.in", "r", stdin);
//     freopen("data.out", "w", stdout);
// #endif

    cin.tie(0);
    cout.tie(0);
    ios::sync_with_stdio(0);

    string op;
    cin >> op;
    if (op == "prepare"){
        int T;
        cin >> T;
        while(T--){
            vector<bool> v(25);
            string s;
            cin >> s;
            string ans;
            for(auto &c : s){
                int x = c - 'A';
                if (!v[x]){
                    v[x] = true;
                    ans += "1";
                }
                else{
                    ans += "0";
                }
            }
            cout << ans << endl;
        }
    }
    else{
        int T;
        cin >> T;
        while(T--){
            vector<int> pos(25);
            string s;
            cin >> s;
            vector<int> cand;
            for(int i = 0; i < 50; i++){
                if (s[i] == '1'){
                    cand.push_back(i);
                }
            }
            for(int i = 0; i < 25; i += 2){
                cout << cand[i] + 1 << endl;
                string str;
                cin >> str;
                pos[str[0] - 'A'] = cand[i] + 1;
                cout << cand[(i + 1) % cand.size()] + 1 << endl;
                cin >> str;
                pos[str[0] - 'A'] = cand[(i + 1) % cand.size()] + 1;
            }
            for(int i = 0; i < 50; i++){
                if (s[i] == '0'){
                    cout << i + 1 << endl;
                    string str;
                    cin >> str;
                    cout << pos[str[0] - 'A'] << endl;
                    cin >> str;
                }
            }
        }
    }

}

詳細信息

Test #1:

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

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

Second Run Output

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
1
26
1
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
3
5
7
9
11
13
15
17
19
21
23
25
27
29
31
33
35
37
39
41
43
45
47
49
1
2
1
4
3
6
5
8
7
10
...

result:

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

Test #2:

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

First Run Input

prepare
1
FNETFOMMJTYCXKCRYLGXKSPAIVQNBURJAPQHUDWSDWVIHGELBO

First Run Output

11110110101111010110011111101100000101100000000000

Second Run Input

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

Second Run Output

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

result:

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

Test #3:

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

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

Second Run Output

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

result:

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

Test #4:

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

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

Second Run Output

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

result:

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

Test #5:

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

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

Second Run Output

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

result:

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

Test #6:

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

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

Second Run Output

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

result:

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

Test #7:

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

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

Second Run Output

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

result:

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

Test #8:

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

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

Second Run Output

1
2
3
4
5
8
10
11
12
13
14
15
17
18
19
20
21
23
25
26
27
29
30
34
37
1
6
3
7
4
9
8
16
11
22
13
24
2
28
5
31
25
32
29
33
20
35
1
36
19
38
18
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
2
3
4
5
6
7
8
9
10
12
13
16
18
19
20
22
23
27
28
31
35
37
39
42
1
11
9
14
3
15
1
17
6
...

result:

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

Test #9:

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

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

Second Run Output

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

result:

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

Test #10:

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

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

Second Run Output

1
2
3
4
5
6
7
8
11
12
14
15
16
17
18
19
22
24
25
26
28
29
32
34
35
1
9
6
10
5
13
12
20
3
21
16
23
18
27
22
30
28
31
2
33
32
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
1
2
3
4
6
7
10
11
12
14
15
16
18
20
22
23
24
26
27
29
32
36
42
44
48
1
5
2
8
7
9
3
13
1
17...

result:

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

Test #11:

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

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

Second Run Output

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

result:

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

Test #12:

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

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

Second Run Output

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

result:

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

Test #13:

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

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

Second Run Output

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

result:

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

Test #14:

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

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

Second Run Output

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

result:

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

Test #15:

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

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

Second Run Output

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

result:

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

Test #16:

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

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

Second Run Output

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

result:

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

Test #17:

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

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

Second Run Output

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

result:

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