QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#591696#8651. Table Tennissonghongyi100 ✓551ms103784kbC++174.1kb2024-09-26 17:14:232024-09-26 17:14:33

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 5
Accepted

Test #1:

score: 5
Accepted
time: 5ms
memory: 5760kb

input:

97
3 0
4 0
5 0
6 0
7 0
8 0
9 0
10 0
11 0
12 0
13 0
14 0
15 0
16 0
17 0
18 0
19 0
20 0
21 0
22 0
23 0
24 0
25 0
26 0
27 0
28 0
29 0
30 0
31 0
32 0
33 0
34 0
35 0
36 0
37 0
38 0
39 0
40 0
41 0
42 0
43 0
44 0
45 0
46 0
47 0
48 0
49 0
50 0
51 0
52 0
53 0
54 0
55 0
56 0
57 0
58 0
59 0
60 0
61 0
62 0
63 0...

output:

Yes
1
11
Yes
1
11
111
Yes
1
11
111
1111
Yes
1
11
111
1111
11111
Yes
1
11
111
1111
11111
111111
Yes
1
11
111
1111
11111
111111
1111111
Yes
1
11
111
1111
11111
111111
1111111
11111111
Yes
1
11
111
1111
11111
111111
1111111
11111111
111111111
Yes
1
11
111
1111
11111
111111
1111111
11111111
111111111
11...

result:

ok good job! (97 test cases)

Test #2:

score: 5
Accepted
time: 311ms
memory: 98644kb

input:

5
4839 0
127 0
22 0
7 0
5 0

output:

Yes
1
11
111
1111
11111
111111
1111111
11111111
111111111
1111111111
11111111111
111111111111
1111111111111
11111111111111
111111111111111
1111111111111111
11111111111111111
111111111111111111
1111111111111111111
11111111111111111111
111111111111111111111
1111111111111111111111
111111111111111111111...

result:

ok good job! (5 test cases)

Test #3:

score: 5
Accepted
time: 72ms
memory: 36836kb

input:

11
1191 0
1580 0
199 0
484 0
209 0
1226 0
92 0
5 0
4 0
4 0
6 0

output:

Yes
1
11
111
1111
11111
111111
1111111
11111111
111111111
1111111111
11111111111
111111111111
1111111111111
11111111111111
111111111111111
1111111111111111
11111111111111111
111111111111111111
1111111111111111111
11111111111111111111
111111111111111111111
1111111111111111111111
111111111111111111111...

result:

ok good job! (11 test cases)

Test #4:

score: 5
Accepted
time: 93ms
memory: 39304kb

input:

8
953 0
1747 0
1782 0
213 0
210 0
82 0
10 0
3 0

output:

Yes
1
11
111
1111
11111
111111
1111111
11111111
111111111
1111111111
11111111111
111111111111
1111111111111
11111111111111
111111111111111
1111111111111111
11111111111111111
111111111111111111
1111111111111111111
11111111111111111111
111111111111111111111
1111111111111111111111
111111111111111111111...

result:

ok good job! (8 test cases)

Test #5:

score: 5
Accepted
time: 0ms
memory: 3760kb

input:

1
6 0

output:

Yes
1
11
111
1111
11111

result:

ok good job! (1 test case)

Test #6:

score: 5
Accepted
time: 0ms
memory: 3772kb

input:

1
7 0

output:

Yes
1
11
111
1111
11111
111111

result:

ok good job! (1 test case)

Test #7:

score: 5
Accepted
time: 0ms
memory: 3800kb

input:

1
19 0

output:

Yes
1
11
111
1111
11111
111111
1111111
11111111
111111111
1111111111
11111111111
111111111111
1111111111111
11111111111111
111111111111111
1111111111111111
11111111111111111
111111111111111111

result:

ok good job! (1 test case)

Test #8:

score: 5
Accepted
time: 1ms
memory: 5776kb

input:

1
20 0

output:

Yes
1
11
111
1111
11111
111111
1111111
11111111
111111111
1111111111
11111111111
111111111111
1111111111111
11111111111111
111111111111111
1111111111111111
11111111111111111
111111111111111111
1111111111111111111

result:

ok good job! (1 test case)

Test #9:

score: 5
Accepted
time: 0ms
memory: 5976kb

input:

1
149 0

output:

Yes
1
11
111
1111
11111
111111
1111111
11111111
111111111
1111111111
11111111111
111111111111
1111111111111
11111111111111
111111111111111
1111111111111111
11111111111111111
111111111111111111
1111111111111111111
11111111111111111111
111111111111111111111
1111111111111111111111
111111111111111111111...

result:

ok good job! (1 test case)

Test #10:

score: 5
Accepted
time: 1ms
memory: 8212kb

input:

1
150 0

output:

Yes
1
11
111
1111
11111
111111
1111111
11111111
111111111
1111111111
11111111111
111111111111
1111111111111
11111111111111
111111111111111
1111111111111111
11111111111111111
111111111111111111
1111111111111111111
11111111111111111111
111111111111111111111
1111111111111111111111
111111111111111111111...

result:

ok good job! (1 test case)

Test #11:

score: 5
Accepted
time: 7ms
memory: 16332kb

input:

1
599 0

output:

Yes
1
11
111
1111
11111
111111
1111111
11111111
111111111
1111111111
11111111111
111111111111
1111111111111
11111111111111
111111111111111
1111111111111111
11111111111111111
111111111111111111
1111111111111111111
11111111111111111111
111111111111111111111
1111111111111111111111
111111111111111111111...

result:

ok good job! (1 test case)

Test #12:

score: 5
Accepted
time: 3ms
memory: 16080kb

input:

1
600 0

output:

Yes
1
11
111
1111
11111
111111
1111111
11111111
111111111
1111111111
11111111111
111111111111
1111111111111
11111111111111
111111111111111
1111111111111111
11111111111111111
111111111111111111
1111111111111111111
11111111111111111111
111111111111111111111
1111111111111111111111
111111111111111111111...

result:

ok good job! (1 test case)

Test #13:

score: 5
Accepted
time: 374ms
memory: 101772kb

input:

1
4999 0

output:

Yes
1
11
111
1111
11111
111111
1111111
11111111
111111111
1111111111
11111111111
111111111111
1111111111111
11111111111111
111111111111111
1111111111111111
11111111111111111
111111111111111111
1111111111111111111
11111111111111111111
111111111111111111111
1111111111111111111111
111111111111111111111...

result:

ok good job! (1 test case)

Test #14:

score: 5
Accepted
time: 342ms
memory: 101800kb

input:

1
5000 0

output:

Yes
1
11
111
1111
11111
111111
1111111
11111111
111111111
1111111111
11111111111
111111111111
1111111111111
11111111111111
111111111111111
1111111111111111
11111111111111111
111111111111111111
1111111111111111111
11111111111111111111
111111111111111111111
1111111111111111111111
111111111111111111111...

result:

ok good job! (1 test case)

Test #15:

score: 5
Accepted
time: 3ms
memory: 5880kb

input:

291
3 0
3 1
4 0
4 1
4 2
5 0
5 1
5 2
5 3
6 0
6 1
6 2
6 3
6 4
7 0
7 1
7 2
7 3
7 4
7 5
8 0
8 1
8 2
8 3
8 4
8 5
8 6
9 0
9 1
9 2
9 3
9 4
9 5
9 6
9 7
10 0
10 1
10 2
10 3
10 4
10 5
10 6
10 7
10 8
11 0
11 1
11 2
11 3
11 4
11 5
11 6
11 7
11 8
11 9
12 0
12 1
12 2
12 3
12 4
12 5
12 6
12 7
12 8
12 9
12 10
13 0
...

output:

Yes
1
11
Yes
1
01
Yes
1
11
111
Yes
1
01
111
Yes
1
01
101
Yes
1
11
111
1111
Yes
1
01
111
1111
Yes
1
01
101
1111
Yes
1
00
101
0100
Yes
1
11
111
1111
11111
Yes
1
01
111
1111
11111
Yes
1
01
101
1111
11111
Yes
1
00
101
0100
11111
Yes
1
01
101
0100
11111
Yes
1
11
111
1111
11111
111111
Yes
1
01
111
1111
11...

result:

ok good job! (291 test cases)

Test #16:

score: 5
Accepted
time: 84ms
memory: 36860kb

input:

11
123 75
1445 897
1645 84
577 115
634 455
118 80
411 132
18 8
23 8
3 1
3 1

output:

Yes
1
00
101
0100
10111
010010
1010101
01010100
101010111
0101110010
10101011101
010101000110
1111111111111
11111111111111
111111111111111
1111111111111111
11111111111111111
111111111111111111
1111111111111111111
11111111111111111111
111111111111111111111
1111111111111111111111
111111111111111111111...

result:

ok good job! (11 test cases)

Test #17:

score: 5
Accepted
time: 132ms
memory: 51340kb

input:

7
1948 1328
2367 1910
216 211
374 276
36 32
20 8
39 6

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010101
101010101010101
0101010101010101
10101010101010101
010101010101010110
1010101010101010101
01010101010101010101
101010101010101010000
0101010101010101010101
101010101010101010100...

result:

ok good job! (7 test cases)

Test #18:

score: 5
Accepted
time: 144ms
memory: 63628kb

input:

6
3051 778
750 222
966 939
138 126
90 28
4 0

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010100
10101010101
010101011100
1010101010111
01010101010000
101010101011101
0101010110111010
10101010101110100
010101010101010100
1010101010111110111
01010101010111010010
101010101010101010101
0101010101010101010100
101010101010101010101...

result:

ok good job! (6 test cases)

Test #19:

score: 5
Accepted
time: 0ms
memory: 3776kb

input:

1
6 0

output:

Yes
1
11
111
1111
11111

result:

ok good job! (1 test case)

Test #20:

score: 5
Accepted
time: 0ms
memory: 3772kb

input:

1
7 2

output:

Yes
1
01
101
1111
11111
111111

result:

ok good job! (1 test case)

Test #21:

score: 5
Accepted
time: 0ms
memory: 3764kb

input:

1
19 7

output:

Yes
1
01
101
0101
10111
111111
1111111
11111111
111111111
1111111111
11111111111
111111111111
1111111111111
11111111111111
111111111111111
1111111111111111
11111111111111111
111111111111111111

result:

ok good job! (1 test case)

Test #22:

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

input:

1
20 14

output:

Yes
1
01
101
0101
10101
010101
1111111
11111111
111111111
1111111111
11111111111
111111111111
1111111111111
11111111111111
111111111111111
1111111111111111
11111111111111111
111111111111111111
1111111111111111111

result:

ok good job! (1 test case)

Test #23:

score: 5
Accepted
time: 1ms
memory: 5996kb

input:

1
149 6

output:

Yes
1
01
101
0100
10111
111111
1111111
11111111
111111111
1111111111
11111111111
111111111111
1111111111111
11111111111111
111111111111111
1111111111111111
11111111111111111
111111111111111111
1111111111111111111
11111111111111111111
111111111111111111111
1111111111111111111111
111111111111111111111...

result:

ok good job! (1 test case)

Test #24:

score: 5
Accepted
time: 1ms
memory: 6304kb

input:

1
150 44

output:

Yes
1
00
101
0100
10101
010100
1010111
01010010
101011101
0101000110
11111111111
111111111111
1111111111111
11111111111111
111111111111111
1111111111111111
11111111111111111
111111111111111111
1111111111111111111
11111111111111111111
111111111111111111111
1111111111111111111111
111111111111111111111...

result:

ok good job! (1 test case)

Test #25:

score: 5
Accepted
time: 3ms
memory: 16516kb

input:

1
599 503

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010101
101010101010101
0101010101010101
10101010101010101
010101010101010100
1010101010101010101
01010101010101010100
101010101010101010101
0101010101010101010100
111111111111111111111...

result:

ok good job! (1 test case)

Test #26:

score: 5
Accepted
time: 7ms
memory: 14772kb

input:

1
600 218

output:

Yes
1
01
101
0111
10101
010101
1010110
01010101
101010001
0101010011
10101010111
010101011110
1010110111101
01010101010100
101010101010111
0101010101010100
10101010101010111
111111111111111111
1111111111111111111
11111111111111111111
111111111111111111111
1111111111111111111111
111111111111111111111...

result:

ok good job! (1 test case)

Test #27:

score: 5
Accepted
time: 350ms
memory: 101740kb

input:

1
4999 4407

output:

Yes
1
01
111
1111
10111
010101
1010101
01111101
100110111
0101010100
10100011010
010101011111
1010100000111
01010101010111
101010000000011
0100000101010101
10101000100101111
010101010111011111
1010101010101010101
01011001010101010101
110000100011101010110
0101010101010101010101
101010101010101010100...

result:

ok good job! (1 test case)

Test #28:

score: 5
Accepted
time: 336ms
memory: 101848kb

input:

1
4999 1436

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010100
1010101010011
01010101010101
101010101010101
0101010101010100
10101010101010101
010101010101011100
1010101010101010111
01010101010101010000
101010101010101011101
0101010101010110111010
101010101011111010101...

result:

ok good job! (1 test case)

Test #29:

score: 5
Accepted
time: 329ms
memory: 101796kb

input:

1
5000 107

output:

Yes
1
01
101
0101
10101
010101
1010101
01010111
101010101
0101010100
10101010111
010101010100
1010101010111
11111111111111
111111111111111
1111111111111111
11111111111111111
111111111111111111
1111111111111111111
11111111111111111111
111111111111111111111
1111111111111111111111
111111111111111111111...

result:

ok good job! (1 test case)

Test #30:

score: 5
Accepted
time: 338ms
memory: 102028kb

input:

1
5000 1509

output:

Yes
1
01
111
0000
10101
010101
1010111
11110101
101010001
0100010111
10101010111
010101011111
1010101010101
01010101011101
101010100010111
0101010101010101
10001010001001001
010100010101010101
1010101010101010111
01010101010101000110
011010001110100110100
0101010101010101010101
101010101010101010000...

result:

ok good job! (1 test case)

Test #31:

score: 5
Accepted
time: 331ms
memory: 101996kb

input:

1
5000 2242

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010101
101010101010101
0101010101010101
10101010101010101
010101010101010101
1010101010101010101
01010101010101010101
101010101010101010101
0101010101010101010101
101010101010101010101...

result:

ok good job! (1 test case)

Test #32:

score: 5
Accepted
time: 0ms
memory: 3660kb

input:

1
4 2

output:

Yes
1
01
101

result:

ok good job! (1 test case)

Test #33:

score: 5
Accepted
time: 0ms
memory: 3712kb

input:

1
5 3

output:

Yes
1
00
101
0100

result:

ok good job! (1 test case)

Test #34:

score: 5
Accepted
time: 0ms
memory: 3720kb

input:

1
6 4

output:

Yes
1
01
101
0100
11111

result:

ok good job! (1 test case)

Test #35:

score: 5
Accepted
time: 0ms
memory: 3776kb

input:

1
7 5

output:

Yes
1
01
101
0101
11111
111111

result:

ok good job! (1 test case)

Test #36:

score: 5
Accepted
time: 1ms
memory: 5768kb

input:

1
19 17

output:

Yes
1
01
101
0101
10111
010100
1010111
11111111
111111111
1111111111
11111111111
111111111111
1111111111111
11111111111111
111111111111111
1111111111111111
11111111111111111
111111111111111111

result:

ok good job! (1 test case)

Test #37:

score: 5
Accepted
time: 0ms
memory: 4032kb

input:

1
20 18

output:

Yes
1
01
101
0101
10101
010100
1010111
11111111
111111111
1111111111
11111111111
111111111111
1111111111111
11111111111111
111111111111111
1111111111111111
11111111111111111
111111111111111111
1111111111111111111

result:

ok good job! (1 test case)

Test #38:

score: 5
Accepted
time: 1ms
memory: 6184kb

input:

1
149 147

output:

Yes
1
01
101
0101
10110
010101
1010001
01010011
101010111
0101011110
10110111101
010101010100
1010101010111
01010101010100
101010101010111
1111111111111111
11111111111111111
111111111111111111
1111111111111111111
11111111111111111111
111111111111111111111
1111111111111111111111
111111111111111111111...

result:

ok good job! (1 test case)

Test #39:

score: 5
Accepted
time: 1ms
memory: 8140kb

input:

1
150 148

output:

Yes
1
01
101
0101
10110
010101
1010001
01010011
101010111
0101011110
10110111100
010101010100
1010101010111
01010101010100
101010101010111
1111111111111111
11111111111111111
111111111111111111
1111111111111111111
11111111111111111111
111111111111111111111
1111111111111111111111
111111111111111111111...

result:

ok good job! (1 test case)

Test #40:

score: 5
Accepted
time: 7ms
memory: 14816kb

input:

1
599 597

output:

Yes
1
01
101
0100
10101
010101
1010101
01010100
101010101
0101011100
10101010111
010101010000
1010101011101
01010110111010
101111101010100
0101010101010100
10101010111110111
010110010111010010
1011101010101001101
01010101010101010100
101010101010101010111
0101110100010100110010
101010101010101011111...

result:

ok good job! (1 test case)

Test #41:

score: 5
Accepted
time: 0ms
memory: 16496kb

input:

1
600 598

output:

Yes
1
01
101
0100
10101
010101
1010101
01010100
101010101
0101011100
10101010111
010101010000
1010101011101
01010110111010
101110101010100
0101010101010100
10101010111110111
010110010111010010
1011101010101001101
01010101010101010100
101010101010101010111
0101110100010100110010
101010101010101011111...

result:

ok good job! (1 test case)

Test #42:

score: 5
Accepted
time: 334ms
memory: 101764kb

input:

1
4999 4997

output:

Yes
0
01
111
0011
01111
011010
1010111
01010101
101010101
1101010101
00101010111
011101010100
0011100011011
01010101011111
100010100000101
0101010101010111
10101010000000011
010010000101010101
1011101010110101111
01010101010111011111
101010101011101010101
1101111001010001010101
101110101010111010101...

result:

ok good job! (1 test case)

Test #43:

score: 5
Accepted
time: 346ms
memory: 101824kb

input:

1
5000 4998

output:

Yes
0
01
111
0011
01111
011010
1010111
01010101
101010101
1101010101
00101010111
011101010100
0011100011011
01010101011111
100010100000101
0101010101010111
10101010000000011
010010000101010101
1011101010110101111
01010101010111011111
101010101011101010101
1101111001010001010101
101110101010111010101...

result:

ok good job! (1 test case)

Test #44:

score: 5
Accepted
time: 0ms
memory: 3768kb

input:

1
4 0

output:

Yes
1
11
111

result:

ok good job! (1 test case)

Test #45:

score: 5
Accepted
time: 0ms
memory: 3764kb

input:

1
5 1

output:

Yes
1
01
111
1111

result:

ok good job! (1 test case)

Test #46:

score: 5
Accepted
time: 0ms
memory: 3936kb

input:

1
6 1

output:

Yes
1
01
111
1111
11111

result:

ok good job! (1 test case)

Test #47:

score: 5
Accepted
time: 0ms
memory: 4008kb

input:

1
7 1

output:

Yes
1
01
111
1111
11111
111111

result:

ok good job! (1 test case)

Test #48:

score: 5
Accepted
time: 0ms
memory: 3720kb

input:

1
19 12

output:

Yes
1
01
101
0100
10101
010100
1111111
11111111
111111111
1111111111
11111111111
111111111111
1111111111111
11111111111111
111111111111111
1111111111111111
11111111111111111
111111111111111111

result:

ok good job! (1 test case)

Test #49:

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

input:

1
20 13

output:

Yes
1
01
101
0101
10101
010100
1111111
11111111
111111111
1111111111
11111111111
111111111111
1111111111111
11111111111111
111111111111111
1111111111111111
11111111111111111
111111111111111111
1111111111111111111

result:

ok good job! (1 test case)

Test #50:

score: 5
Accepted
time: 0ms
memory: 7872kb

input:

1
149 146

output:

Yes
1
11
101
0101
10110
010101
1010001
01010011
101010111
0101011110
10110111101
010101010100
1010101010111
01010101010100
101010101010111
1111111111111111
11111111111111111
111111111111111111
1111111111111111111
11111111111111111111
111111111111111111111
1111111111111111111111
111111111111111111111...

result:

ok good job! (1 test case)

Test #51:

score: 5
Accepted
time: 0ms
memory: 7788kb

input:

1
150 145

output:

Yes
1
11
101
0101
10110
010101
1010001
11010011
101010111
0101011110
10110111101
010101010100
1010101010111
01010101010100
101010101010111
1111111111111111
11111111111111111
111111111111111111
1111111111111111111
11111111111111111111
111111111111111111111
1111111111111111111111
111111111111111111111...

result:

ok good job! (1 test case)

Test #52:

score: 5
Accepted
time: 7ms
memory: 16680kb

input:

1
599 595

output:

Yes
1
01
101
0100
10101
010101
1010101
01010100
101010101
0101011100
10101010111
010101010000
1010101011101
01010110111010
101111101010100
0101010101010100
10101010111110111
010111010111010010
1011101010101000101
01010101010101010100
101010101010101010111
0101110100010100110010
101010101010101011111...

result:

ok good job! (1 test case)

Test #53:

score: 5
Accepted
time: 3ms
memory: 16332kb

input:

1
600 597

output:

Yes
1
01
101
0100
10101
010101
1010101
01010100
101010101
0101011100
10101010111
010101010000
1010101011101
01010110111010
101111101010100
0101010101010100
10101010111110111
010110010111010010
1011101010101001101
01010101010101010100
101010101010101010111
0101110100010100110010
101010101010101011111...

result:

ok good job! (1 test case)

Test #54:

score: 5
Accepted
time: 340ms
memory: 101776kb

input:

1
4999 4992

output:

Yes
0
01
101
0011
01111
011110
1010111
01010101
101010101
1101010101
00101010111
011101010100
0111100011011
01010101011111
100010100000101
0101010101010111
10101010000000011
010010000101010101
1011101010110101111
01010101010111011111
101010101011101010101
1101111001010001010101
101110101010111010101...

result:

ok good job! (1 test case)

Test #55:

score: 5
Accepted
time: 328ms
memory: 101768kb

input:

1
4999 4994

output:

Yes
0
01
111
0011
01111
011110
1010111
01010101
101010101
1101010101
00101010111
011101010100
0111100011011
01010101011111
100010100000101
0101010101010111
10101010000000011
010010000101010101
1011101010110101111
01010101010111011111
101010101011101010101
1101111001010001010101
101110101010111010101...

result:

ok good job! (1 test case)

Test #56:

score: 5
Accepted
time: 331ms
memory: 101956kb

input:

1
5000 4994

output:

Yes
0
01
111
0011
01111
011110
1010111
01010101
101010101
1101010101
00101010111
011101010100
0111100011011
01010101011111
100010100000101
0101010101010111
10101010000000011
010010000101010101
1011101010110101111
01010101010111011111
101010101011101010101
1101111001010001010101
101110101010111010101...

result:

ok good job! (1 test case)

Test #57:

score: 5
Accepted
time: 333ms
memory: 101800kb

input:

1
5000 4994

output:

Yes
0
01
111
0011
01111
011110
1010111
01010101
101010101
1101010101
00101010111
011101010100
0111100011011
01010101011111
100010100000101
0101010101010111
10101010000000011
010010000101010101
1011101010110101111
01010101010111011111
101010101011101010101
1101111001010001010101
101110101010111010101...

result:

ok good job! (1 test case)

Subtask #2:

score: 4
Accepted

Test #58:

score: 4
Accepted
time: 0ms
memory: 3712kb

input:

1
4 4

output:

No

result:

ok good job! (1 test case)

Test #59:

score: 4
Accepted
time: 0ms
memory: 3768kb

input:

1
5 10

output:

No

result:

ok good job! (1 test case)

Test #60:

score: 4
Accepted
time: 0ms
memory: 5916kb

input:

1
6 20

output:

No

result:

ok good job! (1 test case)

Test #61:

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

input:

1
7 35

output:

No

result:

ok good job! (1 test case)

Test #62:

score: 4
Accepted
time: 0ms
memory: 3772kb

input:

1
5 10

output:

No

result:

ok good job! (1 test case)

Test #63:

score: 4
Accepted
time: 0ms
memory: 3808kb

input:

1
6 19

output:

No

result:

ok good job! (1 test case)

Test #64:

score: 4
Accepted
time: 0ms
memory: 3772kb

input:

1
6 20

output:

No

result:

ok good job! (1 test case)

Test #65:

score: 4
Accepted
time: 0ms
memory: 3720kb

input:

1
7 33

output:

No

result:

ok good job! (1 test case)

Test #66:

score: 4
Accepted
time: 1ms
memory: 6020kb

input:

1
7 33

output:

No

result:

ok good job! (1 test case)

Test #67:

score: 4
Accepted
time: 0ms
memory: 3712kb

input:

1
4 3

output:

No

result:

ok good job! (1 test case)

Test #68:

score: 4
Accepted
time: 0ms
memory: 3764kb

input:

1
5 8

output:

No

result:

ok good job! (1 test case)

Test #69:

score: 4
Accepted
time: 0ms
memory: 4004kb

input:

1
6 17

output:

No

result:

ok good job! (1 test case)

Test #70:

score: 4
Accepted
time: 0ms
memory: 3708kb

input:

1
7 30

output:

No

result:

ok good job! (1 test case)

Test #71:

score: 4
Accepted
time: 0ms
memory: 3756kb

input:

2
3 0
3 1

output:

Yes
1
11
Yes
1
01

result:

ok good job! (2 test cases)

Test #72:

score: 4
Accepted
time: 0ms
memory: 3692kb

input:

2
3 0
3 1

output:

Yes
1
11
Yes
1
01

result:

ok good job! (2 test cases)

Test #73:

score: 4
Accepted
time: 0ms
memory: 3700kb

input:

1
4 2

output:

Yes
1
01
101

result:

ok good job! (1 test case)

Test #74:

score: 4
Accepted
time: 0ms
memory: 4000kb

input:

1
5 5

output:

Yes
1
01
101
0101

result:

ok good job! (1 test case)

Test #75:

score: 4
Accepted
time: 0ms
memory: 3712kb

input:

1
6 8

output:

Yes
1
01
101
0101
10101

result:

ok good job! (1 test case)

Test #76:

score: 4
Accepted
time: 0ms
memory: 3720kb

input:

1
7 14

output:

Yes
1
01
101
0101
10101
010101

result:

ok good job! (1 test case)

Test #77:

score: 4
Accepted
time: 0ms
memory: 3712kb

input:

1
6 5

output:

Yes
1
01
101
0101
11111

result:

ok good job! (1 test case)

Test #78:

score: 4
Accepted
time: 0ms
memory: 3968kb

input:

1
6 4

output:

Yes
1
01
101
0100
11111

result:

ok good job! (1 test case)

Test #79:

score: 4
Accepted
time: 0ms
memory: 3776kb

input:

1
7 7

output:

Yes
1
01
101
0101
10111
111111

result:

ok good job! (1 test case)

Test #80:

score: 4
Accepted
time: 1ms
memory: 5624kb

input:

1
7 6

output:

Yes
1
01
101
0100
10111
111111

result:

ok good job! (1 test case)

Test #81:

score: 4
Accepted
time: 0ms
memory: 4012kb

input:

1
7 8

output:

Yes
1
01
101
0101
10101
111111

result:

ok good job! (1 test case)

Test #82:

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

input:

1
6 7

output:

Yes
1
01
101
0101
10111

result:

ok good job! (1 test case)

Test #83:

score: 4
Accepted
time: 0ms
memory: 3704kb

input:

1
6 6

output:

Yes
1
01
101
0100
10111

result:

ok good job! (1 test case)

Test #84:

score: 4
Accepted
time: 0ms
memory: 4008kb

input:

1
7 11

output:

Yes
1
00
101
0100
10101
010100

result:

ok good job! (1 test case)

Test #85:

score: 4
Accepted
time: 1ms
memory: 5996kb

input:

1
7 11

output:

Yes
1
00
101
0100
10101
010100

result:

ok good job! (1 test case)

Test #86:

score: 4
Accepted
time: 0ms
memory: 3976kb

input:

1
7 13

output:

Yes
1
01
101
0101
10101
010100

result:

ok good job! (1 test case)

Test #87:

score: 4
Accepted
time: 0ms
memory: 3712kb

input:

1
6 6

output:

Yes
1
01
101
0100
10111

result:

ok good job! (1 test case)

Test #88:

score: 4
Accepted
time: 0ms
memory: 3700kb

input:

1
7 9

output:

Yes
1
00
111
0110
10101
010100

result:

ok good job! (1 test case)

Test #89:

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

input:

1
4 3

output:

No

result:

ok good job! (1 test case)

Test #90:

score: 4
Accepted
time: 0ms
memory: 3764kb

input:

1
5 10

output:

No

result:

ok good job! (1 test case)

Test #91:

score: 4
Accepted
time: 0ms
memory: 3744kb

input:

1
6 13

output:

No

result:

ok good job! (1 test case)

Test #92:

score: 4
Accepted
time: 0ms
memory: 4012kb

input:

1
7 23

output:

No

result:

ok good job! (1 test case)

Test #93:

score: 4
Accepted
time: 0ms
memory: 3772kb

input:

1
6 5

output:

Yes
1
01
101
0101
11111

result:

ok good job! (1 test case)

Test #94:

score: 4
Accepted
time: 0ms
memory: 3936kb

input:

1
6 2

output:

Yes
1
01
101
1111
11111

result:

ok good job! (1 test case)

Test #95:

score: 4
Accepted
time: 0ms
memory: 3740kb

input:

1
7 7

output:

Yes
1
01
101
0101
10111
111111

result:

ok good job! (1 test case)

Test #96:

score: 4
Accepted
time: 0ms
memory: 3960kb

input:

1
7 6

output:

Yes
1
01
101
0100
10111
111111

result:

ok good job! (1 test case)

Test #97:

score: 4
Accepted
time: 0ms
memory: 3812kb

input:

1
7 8

output:

Yes
1
01
101
0101
10101
111111

result:

ok good job! (1 test case)

Test #98:

score: 4
Accepted
time: 0ms
memory: 3764kb

input:

1
6 5

output:

Yes
1
01
101
0101
11111

result:

ok good job! (1 test case)

Test #99:

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

input:

1
6 4

output:

Yes
1
01
101
0100
11111

result:

ok good job! (1 test case)

Test #100:

score: 4
Accepted
time: 1ms
memory: 5784kb

input:

1
7 7

output:

Yes
1
01
101
0101
10111
111111

result:

ok good job! (1 test case)

Test #101:

score: 4
Accepted
time: 0ms
memory: 3712kb

input:

1
7 6

output:

Yes
1
01
101
0100
10111
111111

result:

ok good job! (1 test case)

Test #102:

score: 4
Accepted
time: 0ms
memory: 3748kb

input:

1
7 8

output:

Yes
1
01
101
0101
10101
111111

result:

ok good job! (1 test case)

Test #103:

score: 4
Accepted
time: 0ms
memory: 4000kb

input:

1
6 1

output:

Yes
1
01
111
1111
11111

result:

ok good job! (1 test case)

Test #104:

score: 4
Accepted
time: 1ms
memory: 5676kb

input:

1
6 1

output:

Yes
1
01
111
1111
11111

result:

ok good job! (1 test case)

Test #105:

score: 4
Accepted
time: 0ms
memory: 4016kb

input:

1
7 3

output:

Yes
1
00
101
0100
11111
111111

result:

ok good job! (1 test case)

Test #106:

score: 4
Accepted
time: 0ms
memory: 3716kb

input:

1
7 3

output:

Yes
1
00
101
0100
11111
111111

result:

ok good job! (1 test case)

Test #107:

score: 4
Accepted
time: 0ms
memory: 4016kb

input:

1
7 3

output:

Yes
1
00
101
0100
11111
111111

result:

ok good job! (1 test case)

Test #108:

score: 4
Accepted
time: 0ms
memory: 3764kb

input:

1
5 2

output:

Yes
1
01
101
1111

result:

ok good job! (1 test case)

Test #109:

score: 4
Accepted
time: 1ms
memory: 5716kb

input:

1
6 5

output:

Yes
1
01
101
0101
11111

result:

ok good job! (1 test case)

Test #110:

score: 4
Accepted
time: 0ms
memory: 3760kb

input:

2
4 1
3 0

output:

Yes
1
01
111
Yes
1
11

result:

ok good job! (2 test cases)

Test #111:

score: 4
Accepted
time: 0ms
memory: 3740kb

input:

1
6 1

output:

Yes
1
01
111
1111
11111

result:

ok good job! (1 test case)

Test #112:

score: 4
Accepted
time: 1ms
memory: 6004kb

input:

2
3 0
3 1

output:

Yes
1
11
Yes
1
01

result:

ok good job! (2 test cases)

Test #113:

score: 4
Accepted
time: 0ms
memory: 3712kb

input:

1
6 1

output:

Yes
1
01
111
1111
11111

result:

ok good job! (1 test case)

Test #114:

score: 4
Accepted
time: 0ms
memory: 3672kb

input:

1
6 4

output:

Yes
1
01
101
0100
11111

result:

ok good job! (1 test case)

Test #115:

score: 4
Accepted
time: 0ms
memory: 3812kb

input:

1
7 14

output:

Yes
1
01
101
0101
10101
010101

result:

ok good job! (1 test case)

Test #116:

score: 4
Accepted
time: 0ms
memory: 3712kb

input:

1
7 8

output:

Yes
1
01
101
0101
10101
111111

result:

ok good job! (1 test case)

Test #117:

score: 4
Accepted
time: 0ms
memory: 3660kb

input:

1
7 10

output:

Yes
1
00
101
0110
10101
010100

result:

ok good job! (1 test case)

Subtask #3:

score: 23
Accepted

Dependency #2:

100%
Accepted

Test #118:

score: 23
Accepted
time: 0ms
memory: 3764kb

input:

1
19 969

output:

No

result:

ok good job! (1 test case)

Test #119:

score: 23
Accepted
time: 1ms
memory: 5796kb

input:

1
20 1140

output:

No

result:

ok good job! (1 test case)

Test #120:

score: 23
Accepted
time: 1ms
memory: 5864kb

input:

1
19 968

output:

No

result:

ok good job! (1 test case)

Test #121:

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

input:

1
19 969

output:

No

result:

ok good job! (1 test case)

Test #122:

score: 23
Accepted
time: 0ms
memory: 4068kb

input:

1
20 1138

output:

No

result:

ok good job! (1 test case)

Test #123:

score: 23
Accepted
time: 0ms
memory: 3768kb

input:

1
20 1138

output:

No

result:

ok good job! (1 test case)

Test #124:

score: 23
Accepted
time: 0ms
memory: 3840kb

input:

1
20 1140

output:

No

result:

ok good job! (1 test case)

Test #125:

score: 23
Accepted
time: 1ms
memory: 5936kb

input:

1
19 846

output:

No

result:

ok good job! (1 test case)

Test #126:

score: 23
Accepted
time: 0ms
memory: 4016kb

input:

1
20 1003

output:

No

result:

ok good job! (1 test case)

Test #127:

score: 23
Accepted
time: 0ms
memory: 3660kb

input:

5
3 0
3 1
4 0
4 1
4 2

output:

Yes
1
11
Yes
1
01
Yes
1
11
111
Yes
1
01
111
Yes
1
01
101

result:

ok good job! (5 test cases)

Test #128:

score: 23
Accepted
time: 0ms
memory: 3628kb

input:

5
3 0
3 1
4 0
4 1
4 2

output:

Yes
1
11
Yes
1
01
Yes
1
11
111
Yes
1
01
111
Yes
1
01
101

result:

ok good job! (5 test cases)

Test #129:

score: 23
Accepted
time: 0ms
memory: 3712kb

input:

1
19 285

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010101
101010101010101
0101010101010101
10101010101010101
010101010101010101

result:

ok good job! (1 test case)

Test #130:

score: 23
Accepted
time: 1ms
memory: 5852kb

input:

1
20 330

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010101
101010101010101
0101010101010101
10101010101010101
010101010101010101
1010101010101010101

result:

ok good job! (1 test case)

Test #131:

score: 23
Accepted
time: 0ms
memory: 3992kb

input:

1
19 274

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010100
10101010101
010101010100
1010101010101
01010101010100
101010101010111
0101010101010010
10101010101011101
010101010101000110

result:

ok good job! (1 test case)

Test #132:

score: 23
Accepted
time: 1ms
memory: 5832kb

input:

1
19 271

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010100
10101010111
010101010110
1010101010101
01010101010100
101010101010111
0101010101110010
10101010101011101
010101010101000110

result:

ok good job! (1 test case)

Test #133:

score: 23
Accepted
time: 1ms
memory: 5944kb

input:

1
20 289

output:

Yes
1
01
101
0101
10111
010110
0010101
01010101
101010000
0101010101
10101010001
011011010011
1010101010111
01010111011110
101010110111101
0111010101010100
10101010111010011
011001110101110110
1010101010101010111

result:

ok good job! (1 test case)

Test #134:

score: 23
Accepted
time: 1ms
memory: 5796kb

input:

1
20 328

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010101
101010101010101
0101010101010101
10101010101010101
010101010101010100
1010101010101010111

result:

ok good job! (1 test case)

Test #135:

score: 23
Accepted
time: 0ms
memory: 3724kb

input:

1
20 313

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010111
0101010101
10101010001
010101010111
1010101010111
01010101011110
101010110011100
0101010101010100
10101010101010111
010101010101010100
1010101010101010111

result:

ok good job! (1 test case)

Test #136:

score: 23
Accepted
time: 0ms
memory: 3840kb

input:

1
19 114

output:

Yes
1
00
111
0000
10101
010100
1111111
00011010
101010101
0101010100
10101010111
010101110010
1010101111101
01010101000110
111111111111111
1111111111111111
11111111111111111
111111111111111111

result:

ok good job! (1 test case)

Test #137:

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

input:

1
19 96

output:

Yes
1
01
111
0101
10001
010111
1010111
01011110
100011100
0101010100
10101010111
010101010100
1010101010111
11111111111111
111111111111111
1111111111111111
11111111111111111
111111111111111111

result:

ok good job! (1 test case)

Test #138:

score: 23
Accepted
time: 0ms
memory: 3844kb

input:

1
20 152

output:

Yes
1
01
101
0101
10111
010101
1010001
01010111
101010111
0101011110
10100011100
010101010100
1010101010111
01010101010100
101010101010111
1111111111111111
11111111111111111
111111111111111111
1111111111111111111

result:

ok good job! (1 test case)

Test #139:

score: 23
Accepted
time: 0ms
memory: 3764kb

input:

1
20 250

output:

Yes
1
00
101
1100
10111
010000
1010101
10101010
101010101
0101010100
10111110111
010111010010
1010101010101
01010101010100
101010101010111
0101010101110010
10101010101111101
010101010101000110
1111111111111111111

result:

ok good job! (1 test case)

Test #140:

score: 23
Accepted
time: 1ms
memory: 5812kb

input:

1
20 28

output:

Yes
1
01
101
0101
10101
010100
1010101
01010100
111111111
1111111111
11111111111
111111111111
1111111111111
11111111111111
111111111111111
1111111111111111
11111111111111111
111111111111111111
1111111111111111111

result:

ok good job! (1 test case)

Test #141:

score: 23
Accepted
time: 0ms
memory: 3764kb

input:

1
19 231

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010111
010101010110
1010101011100
01010101010100
101010101010111
0101010101010100
10101010101010111
111111111111111111

result:

ok good job! (1 test case)

Test #142:

score: 23
Accepted
time: 0ms
memory: 3760kb

input:

1
19 270

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010100
10101010111
010101010010
1010101010101
01010101010100
101010101010111
0101010101110010
10101010101011101
010101010101000110

result:

ok good job! (1 test case)

Test #143:

score: 23
Accepted
time: 1ms
memory: 5980kb

input:

1
20 258

output:

Yes
1
00
101
0100
10111
010000
1010101
01000110
101010101
0101010100
10111010111
010101010010
1010101010101
01010101010100
101010101010111
0101010101110010
10101010101111101
010101010101000110
1111111111111111111

result:

ok good job! (1 test case)

Test #144:

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

input:

1
20 263

output:

Yes
1
01
101
0100
10111
010010
1010101
01010100
101010101
0101010100
10101010111
010101010010
1010101010101
01010101010100
101010101010111
0101010101110010
10101010101111101
010101010101000110
1111111111111111111

result:

ok good job! (1 test case)

Test #145:

score: 23
Accepted
time: 0ms
memory: 5808kb

input:

1
20 286

output:

Yes
1
01
001
0101
10111
010110
0010101
01010101
101010000
0101010101
10101010001
011011010011
1010101010111
01010111011110
101010110111101
0111010101010100
00101010111010011
011101110101110110
1010101010101010111

result:

ok good job! (1 test case)

Test #146:

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

input:

1
19 241

output:

Yes
1
00
101
1100
10111
010000
1011101
10111010
101010100
0101010100
10111110111
010111010010
1010101011101
01010101010100
101010101010111
0100010101110010
10101010101111101
010001010101000100

result:

ok good job! (1 test case)

Test #147:

score: 23
Accepted
time: 1ms
memory: 5788kb

input:

1
20 286

output:

Yes
1
01
001
0101
10111
010110
0010101
01010101
101010000
0101010101
10101010001
011011010011
1010101010111
01010111011110
101010110111101
0111010101010100
00101010111010011
011101110101110110
1010101010101010111

result:

ok good job! (1 test case)

Test #148:

score: 23
Accepted
time: 0ms
memory: 3764kb

input:

1
19 294

output:

No

result:

ok good job! (1 test case)

Test #149:

score: 23
Accepted
time: 1ms
memory: 5800kb

input:

1
19 289

output:

No

result:

ok good job! (1 test case)

Test #150:

score: 23
Accepted
time: 1ms
memory: 3868kb

input:

1
20 338

output:

No

result:

ok good job! (1 test case)

Test #151:

score: 23
Accepted
time: 0ms
memory: 3840kb

input:

1
20 336

output:

No

result:

ok good job! (1 test case)

Test #152:

score: 23
Accepted
time: 0ms
memory: 3772kb

input:

1
20 335

output:

No

result:

ok good job! (1 test case)

Test #153:

score: 23
Accepted
time: 0ms
memory: 3988kb

input:

1
19 19

output:

Yes
1
01
101
0101
10101
010101
1010111
11111111
111111111
1111111111
11111111111
111111111111
1111111111111
11111111111111
111111111111111
1111111111111111
11111111111111111
111111111111111111

result:

ok good job! (1 test case)

Test #154:

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

input:

1
19 1

output:

Yes
1
01
111
1111
11111
111111
1111111
11111111
111111111
1111111111
11111111111
111111111111
1111111111111
11111111111111
111111111111111
1111111111111111
11111111111111111
111111111111111111

result:

ok good job! (1 test case)

Test #155:

score: 23
Accepted
time: 0ms
memory: 3824kb

input:

1
20 2

output:

Yes
1
01
101
1111
11111
111111
1111111
11111111
111111111
1111111111
11111111111
111111111111
1111111111111
11111111111111
111111111111111
1111111111111111
11111111111111111
111111111111111111
1111111111111111111

result:

ok good job! (1 test case)

Test #156:

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

input:

1
20 40

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
1111111111
11111111111
111111111111
1111111111111
11111111111111
111111111111111
1111111111111111
11111111111111111
111111111111111111
1111111111111111111

result:

ok good job! (1 test case)

Test #157:

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

input:

1
20 18

output:

Yes
1
01
101
0101
10101
010100
1010111
11111111
111111111
1111111111
11111111111
111111111111
1111111111111
11111111111111
111111111111111
1111111111111111
11111111111111111
111111111111111111
1111111111111111111

result:

ok good job! (1 test case)

Test #158:

score: 23
Accepted
time: 0ms
memory: 3836kb

input:

1
19 114

output:

Yes
1
00
111
0000
10101
010100
1111111
00011010
101010101
0101010100
10101010111
010101110010
1010101111101
01010101000110
111111111111111
1111111111111111
11111111111111111
111111111111111111

result:

ok good job! (1 test case)

Test #159:

score: 23
Accepted
time: 0ms
memory: 5752kb

input:

1
19 96

output:

Yes
1
01
111
0101
10001
010111
1010111
01011110
100011100
0101010100
10101010111
010101010100
1010101010111
11111111111111
111111111111111
1111111111111111
11111111111111111
111111111111111111

result:

ok good job! (1 test case)

Test #160:

score: 23
Accepted
time: 0ms
memory: 3700kb

input:

1
20 152

output:

Yes
1
01
101
0101
10111
010101
1010001
01010111
101010111
0101011110
10100011100
010101010100
1010101010111
01010101010100
101010101010111
1111111111111111
11111111111111111
111111111111111111
1111111111111111111

result:

ok good job! (1 test case)

Test #161:

score: 23
Accepted
time: 0ms
memory: 3836kb

input:

1
20 250

output:

Yes
1
00
101
1100
10111
010000
1010101
10101010
101010101
0101010100
10111110111
010111010010
1010101010101
01010101010100
101010101010111
0101010101110010
10101010101111101
010101010101000110
1111111111111111111

result:

ok good job! (1 test case)

Test #162:

score: 23
Accepted
time: 0ms
memory: 4032kb

input:

1
20 28

output:

Yes
1
01
101
0101
10101
010100
1010101
01010100
111111111
1111111111
11111111111
111111111111
1111111111111
11111111111111
111111111111111
1111111111111111
11111111111111111
111111111111111111
1111111111111111111

result:

ok good job! (1 test case)

Test #163:

score: 23
Accepted
time: 0ms
memory: 4028kb

input:

1
19 68

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010100
10101010111
111111111111
1111111111111
11111111111111
111111111111111
1111111111111111
11111111111111111
111111111111111111

result:

ok good job! (1 test case)

Test #164:

score: 23
Accepted
time: 0ms
memory: 3764kb

input:

1
19 49

output:

Yes
1
01
101
0101
10101
010100
1010111
01010010
101010101
0101010100
11111111111
111111111111
1111111111111
11111111111111
111111111111111
1111111111111111
11111111111111111
111111111111111111

result:

ok good job! (1 test case)

Test #165:

score: 23
Accepted
time: 0ms
memory: 4036kb

input:

1
20 21

output:

Yes
1
01
101
0100
10111
010010
1011101
01000110
111111111
1111111111
11111111111
111111111111
1111111111111
11111111111111
111111111111111
1111111111111111
11111111111111111
111111111111111111
1111111111111111111

result:

ok good job! (1 test case)

Test #166:

score: 23
Accepted
time: 0ms
memory: 3808kb

input:

1
20 34

output:

Yes
1
01
101
0111
10100
010100
1010111
01010100
101010111
1111111111
11111111111
111111111111
1111111111111
11111111111111
111111111111111
1111111111111111
11111111111111111
111111111111111111
1111111111111111111

result:

ok good job! (1 test case)

Test #167:

score: 23
Accepted
time: 1ms
memory: 5852kb

input:

1
20 34

output:

Yes
1
01
101
0111
10100
010100
1010111
01010100
101010111
1111111111
11111111111
111111111111
1111111111111
11111111111111
111111111111111
1111111111111111
11111111111111111
111111111111111111
1111111111111111111

result:

ok good job! (1 test case)

Test #168:

score: 23
Accepted
time: 1ms
memory: 5672kb

input:

2
13 8
7 3

output:

Yes
1
01
101
0101
10101
111111
1111111
11111111
111111111
1111111111
11111111111
111111111111
Yes
1
00
101
0100
11111
111111

result:

ok good job! (2 test cases)

Test #169:

score: 23
Accepted
time: 1ms
memory: 6004kb

input:

3
10 3
3 1
7 0

output:

Yes
1
00
101
0100
11111
111111
1111111
11111111
111111111
Yes
1
01
Yes
1
11
111
1111
11111
111111

result:

ok good job! (3 test cases)

Test #170:

score: 23
Accepted
time: 0ms
memory: 3788kb

input:

4
7 6
6 3
4 2
3 0

output:

Yes
1
01
101
0100
10111
111111
Yes
1
00
101
0100
11111
Yes
1
01
101
Yes
1
11

result:

ok good job! (4 test cases)

Test #171:

score: 23
Accepted
time: 0ms
memory: 3712kb

input:

2
17 120
3 0

output:

Yes
1
00
101
0110
10101
010100
1110111
01010010
101010101
0101010100
10101010111
010101110010
1010101111101
01010101000110
111111111111111
1111111111111111
Yes
1
11

result:

ok good job! (2 test cases)

Test #172:

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

input:

4
6 1
6 7
4 0
4 0

output:

Yes
1
01
111
1111
11111
Yes
1
01
101
0101
10111
Yes
1
11
111
Yes
1
11
111

result:

ok good job! (4 test cases)

Test #173:

score: 23
Accepted
time: 1ms
memory: 5740kb

input:

1
19 181

output:

Yes
1
00
111
0010
10101
010110
1010101
01010100
101010111
0101010010
10101010101
010101010100
1010101010111
01010101110010
101010101111101
0101010101000110
11111111111111111
111111111111111111

result:

ok good job! (1 test case)

Test #174:

score: 23
Accepted
time: 0ms
memory: 5784kb

input:

1
19 17

output:

Yes
1
01
101
0101
10111
010100
1010111
11111111
111111111
1111111111
11111111111
111111111111
1111111111111
11111111111111
111111111111111
1111111111111111
11111111111111111
111111111111111111

result:

ok good job! (1 test case)

Test #175:

score: 23
Accepted
time: 1ms
memory: 5924kb

input:

1
20 170

output:

Yes
1
00
111
0000
10101
101010
1010101
01010100
111110111
1001011010
10101010101
010101010100
1010101010111
01010111110010
101010101111101
0101010101000110
11111111111111111
111111111111111111
1111111111111111111

result:

ok good job! (1 test case)

Test #176:

score: 23
Accepted
time: 0ms
memory: 4036kb

input:

1
20 30

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
111111111
1111111111
11111111111
111111111111
1111111111111
11111111111111
111111111111111
1111111111111111
11111111111111111
111111111111111111
1111111111111111111

result:

ok good job! (1 test case)

Test #177:

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

input:

1
20 183

output:

Yes
1
00
111
0110
10101
010100
1010101
01010100
101010111
0101010010
10101010101
010101010100
1010101010111
01010101110010
101010101111101
0101010101000110
11111111111111111
111111111111111111
1111111111111111111

result:

ok good job! (1 test case)

Subtask #4:

score: 30
Accepted

Dependency #3:

100%
Accepted

Test #178:

score: 30
Accepted
time: 1ms
memory: 7844kb

input:

1
149 540274

output:

No

result:

ok good job! (1 test case)

Test #179:

score: 30
Accepted
time: 1ms
memory: 6008kb

input:

1
150 551300

output:

No

result:

ok good job! (1 test case)

Test #180:

score: 30
Accepted
time: 1ms
memory: 7920kb

input:

1
149 540272

output:

No

result:

ok good job! (1 test case)

Test #181:

score: 30
Accepted
time: 1ms
memory: 7856kb

input:

1
149 540272

output:

No

result:

ok good job! (1 test case)

Test #182:

score: 30
Accepted
time: 1ms
memory: 8036kb

input:

1
150 551299

output:

No

result:

ok good job! (1 test case)

Test #183:

score: 30
Accepted
time: 1ms
memory: 8192kb

input:

1
150 551299

output:

No

result:

ok good job! (1 test case)

Test #184:

score: 30
Accepted
time: 1ms
memory: 8124kb

input:

1
150 551299

output:

No

result:

ok good job! (1 test case)

Test #185:

score: 30
Accepted
time: 1ms
memory: 6372kb

input:

1
149 468391

output:

No

result:

ok good job! (1 test case)

Test #186:

score: 30
Accepted
time: 1ms
memory: 7828kb

input:

1
150 482173

output:

No

result:

ok good job! (1 test case)

Test #187:

score: 30
Accepted
time: 0ms
memory: 3772kb

input:

29
3 0
3 1
4 0
4 1
4 2
4 3
4 4
5 0
5 1
5 2
5 3
5 4
5 5
5 6
5 7
5 8
5 9
5 10
6 0
6 1
6 2
6 3
6 4
6 5
6 6
6 7
6 8
6 9
6 10

output:

Yes
1
11
Yes
1
01
Yes
1
11
111
Yes
1
01
111
Yes
1
01
101
No
No
Yes
1
11
111
1111
Yes
1
01
111
1111
Yes
1
01
101
1111
Yes
1
00
101
0100
Yes
1
01
101
0100
Yes
1
01
101
0101
No
No
No
No
No
Yes
1
11
111
1111
11111
Yes
1
01
111
1111
11111
Yes
1
01
101
1111
11111
Yes
1
00
101
0100
11111
Yes
1
01
101
0100
...

result:

ok good job! (29 test cases)

Test #188:

score: 30
Accepted
time: 1ms
memory: 3712kb

input:

26
3 0
3 1
4 0
4 1
4 2
5 0
5 1
5 2
5 3
5 4
5 5
6 0
6 1
6 2
6 3
6 4
6 5
6 6
6 7
6 8
7 0
7 1
7 2
7 3
7 4
7 5

output:

Yes
1
11
Yes
1
01
Yes
1
11
111
Yes
1
01
111
Yes
1
01
101
Yes
1
11
111
1111
Yes
1
01
111
1111
Yes
1
01
101
1111
Yes
1
00
101
0100
Yes
1
01
101
0100
Yes
1
01
101
0101
Yes
1
11
111
1111
11111
Yes
1
01
111
1111
11111
Yes
1
01
101
1111
11111
Yes
1
00
101
0100
11111
Yes
1
01
101
0100
11111
Yes
1
01
101
01...

result:

ok good job! (26 test cases)

Test #189:

score: 30
Accepted
time: 2ms
memory: 7884kb

input:

1
149 137825

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010101
101010101010101
0101010101010101
10101010101010101
010101010101010101
1010101010101010101
01010101010101010101
101010101010101010101
0101010101010101010101
101010101010101010101...

result:

ok good job! (1 test case)

Test #190:

score: 30
Accepted
time: 1ms
memory: 6384kb

input:

1
150 140600

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010101
101010101010101
0101010101010101
10101010101010101
010101010101010101
1010101010101010101
01010101010101010101
101010101010101010101
0101010101010101010101
101010101010101010101...

result:

ok good job! (1 test case)

Test #191:

score: 30
Accepted
time: 1ms
memory: 6132kb

input:

1
149 137691

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010101
101010101010101
0101010101010101
10101010101010101
010101010101010101
1010101010101010101
01010101010101010101
101010101010101010101
0101010101010101010101
101010101010101010101...

result:

ok good job! (1 test case)

Test #192:

score: 30
Accepted
time: 1ms
memory: 7848kb

input:

1
149 137531

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010101
101010101010101
0101010101010101
10101010101010101
010101010101010101
1010101010101010101
01010101010101010101
101010101010101010101
0101010101010101010101
101010101010101010101...

result:

ok good job! (1 test case)

Test #193:

score: 30
Accepted
time: 1ms
memory: 8080kb

input:

1
150 140481

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010101
101010101010101
0101010101010101
10101010101010101
010101010101010101
1010101010101010101
01010101010101010101
101010101010101010101
0101010101010101010101
101010101010101010101...

result:

ok good job! (1 test case)

Test #194:

score: 30
Accepted
time: 1ms
memory: 6068kb

input:

1
150 140455

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010101
101010101010101
0101010101010101
10101010101010101
010101010101010101
1010101010101010101
01010101010101010101
101010101010101010101
0101010101010101010101
101010101010101010101...

result:

ok good job! (1 test case)

Test #195:

score: 30
Accepted
time: 2ms
memory: 6264kb

input:

1
150 140554

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010101
101010101010101
0101010101010101
10101010101010101
010101010101010101
1010101010101010101
01010101010101010101
101010101010101010101
0101010101010101010101
101010101010101010101...

result:

ok good job! (1 test case)

Test #196:

score: 30
Accepted
time: 1ms
memory: 6172kb

input:

1
149 77527

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010101
101010101010101
0101010101010101
10101010101010101
010101010101010101
1010101010101010101
01010101010101010101
101010101010101010101
0101010101010101010101
101010101010101010101...

result:

ok good job! (1 test case)

Test #197:

score: 30
Accepted
time: 1ms
memory: 5996kb

input:

1
149 123264

output:

Yes
1
01
101
1111
11101
010101
1110101
01011101
111110111
0101011111
10111011110
000111111001
1111101011101
01010101010111
111110111101111
0101010101010101
10101010101110111
001100001100111111
1010101010101011111
11001100000101111100
001010101010001010000
1100010010000011000011
101000101000001010100...

result:

ok good job! (1 test case)

Test #198:

score: 30
Accepted
time: 0ms
memory: 5996kb

input:

1
150 123655

output:

Yes
1
01
101
0101
10101
010101
1010101
01010111
101010101
0101011111
10101010101
010101010101
1010101010101
01010101010111
101010101010101
0101010101010101
10101010101010101
010101011101011111
1010101010001011111
01010101010111111100
101010100010101010100
0101010101010101011111
101010101000000010100...

result:

ok good job! (1 test case)

Test #199:

score: 30
Accepted
time: 1ms
memory: 6348kb

input:

1
150 128371

output:

Yes
1
11
111
0101
11101
111101
1010111
01011101
101010111
0101011101
11101110101
010101011110
1110111010101
11110101011101
111111101011110
1011010101010101
10101010101010111
010101010101010101
1111101010101011101
00010011111110011011
101010101010101011111
1000011001011101011100
000010101010101010100...

result:

ok good job! (1 test case)

Test #200:

score: 30
Accepted
time: 1ms
memory: 7896kb

input:

1
150 124526

output:

Yes
1
01
111
0011
11111
010010
1010111
01000100
101000001
0000110011
10101010100
011111101101
1010101110101
00100101011100
110010101010101
0111110111011010
10101010101010101
011101010111000110
1010101010101010100
01111101110111011001
101010101010101010001
0101010101011101001111
100010101010101010101...

result:

ok good job! (1 test case)

Test #201:

score: 30
Accepted
time: 1ms
memory: 6148kb

input:

1
149 132911

output:

Yes
1
01
111
0111
10101
010101
0010011
01011101
101111111
0101010101
10101010111
010101111101
1011111111101
11110101011110
111110101010111
0111110101011101
10101011111010100
111101011001010100
1110101010101010111
11001101010101010101
101011111111101010101
0010010111111110011011
101010101010101011111...

result:

ok good job! (1 test case)

Test #202:

score: 30
Accepted
time: 1ms
memory: 6068kb

input:

1
149 129426

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010101
101010101010101
0101010101010101
10101010101010101
010101010101010101
1010101010101010101
01010101010101010101
101010101010101010101
0101010101010101010101
101010101010101010101...

result:

ok good job! (1 test case)

Test #203:

score: 30
Accepted
time: 1ms
memory: 8148kb

input:

1
150 108351

output:

Yes
1
11
101
1110
10111
000100
1011101
00001110
101110100
0101010101
10111111101
010111110011
1010101011111
01010101011100
100010000010100
1110110100001010
10100000001010101
010101010101010101
1010101010101010111
01010101010101010111
101010111010101010101
0101010101010101010111
101010101010101010101...

result:

ok good job! (1 test case)

Test #204:

score: 30
Accepted
time: 0ms
memory: 6136kb

input:

1
150 132640

output:

Yes
1
01
111
0111
10101
010101
0010011
01011101
101111111
0101010101
10101010111
010101111101
1011111111101
11110101011110
111110101010111
0111110101011101
10101011111010100
111101011001010100
1110101010101010111
11001101010101010101
101011111111101010101
0010010111111110011011
101010101010101011111...

result:

ok good job! (1 test case)

Test #205:

score: 30
Accepted
time: 1ms
memory: 8216kb

input:

1
150 111366

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010101
101010101010101
0101010101010101
10101010101010101
010101010101010101
1010101010101010101
01010101010101010101
101010101010101010101
0101010101010101010101
101010101010101010101...

result:

ok good job! (1 test case)

Test #206:

score: 30
Accepted
time: 1ms
memory: 6484kb

input:

1
149 135051

output:

Yes
0
01
101
0001
11111
101101
1010111
11111011
100011111
0101011010
10101010111
011111110100
1010101010001
01011000010001
111000100010110
0101111111001111
10101000101110101
010111111111011100
1010100000101010101
11110110111111011010
101010101010101010101
1101010111010111100110
101010101010100010101...

result:

ok good job! (1 test case)

Test #207:

score: 30
Accepted
time: 0ms
memory: 7832kb

input:

1
150 137826

output:

Yes
1
01
101
0101
10101
010111
1110111
01010101
101011111
0101011101
11101110101
010101011101
1011101011111
11010101011111
101110111110101
0011111101111110
10111110101010101
010111110101011100
1010101011111010110
00111101000001010100
111010111110101010011
0111010101010101110101
101110101110101111101...

result:

ok good job! (1 test case)

Test #208:

score: 30
Accepted
time: 0ms
memory: 6120kb

input:

1
149 137827

output:

No

result:

ok good job! (1 test case)

Test #209:

score: 30
Accepted
time: 0ms
memory: 5976kb

input:

1
149 137827

output:

No

result:

ok good job! (1 test case)

Test #210:

score: 30
Accepted
time: 0ms
memory: 7936kb

input:

1
150 140609

output:

No

result:

ok good job! (1 test case)

Test #211:

score: 30
Accepted
time: 1ms
memory: 7952kb

input:

1
150 140608

output:

No

result:

ok good job! (1 test case)

Test #212:

score: 30
Accepted
time: 0ms
memory: 7952kb

input:

1
150 140607

output:

No

result:

ok good job! (1 test case)

Test #213:

score: 30
Accepted
time: 1ms
memory: 6340kb

input:

1
149 379

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010101
101010101010101
0101010101010100
10101010101010111
010101010101010010
1010101010101010101
01010101010101010100
111111111111111111111
1111111111111111111111
111111111111111111111...

result:

ok good job! (1 test case)

Test #214:

score: 30
Accepted
time: 0ms
memory: 6008kb

input:

1
149 298

output:

Yes
1
01
101
0101
10101
010110
1010101
01010101
101010000
0101010101
10101010001
010111010011
1010101010111
01010111011110
101010110111101
0101010101010100
10101010111010011
010001110101010110
1010101010101010111
11111111111111111111
111111111111111111111
1111111111111111111111
111111111111111111111...

result:

ok good job! (1 test case)

Test #215:

score: 30
Accepted
time: 1ms
memory: 7948kb

input:

1
150 75

output:

Yes
1
00
101
0100
10111
010010
1010101
01010100
101010111
0101110010
10101011101
010101000110
1111111111111
11111111111111
111111111111111
1111111111111111
11111111111111111
111111111111111111
1111111111111111111
11111111111111111111
111111111111111111111
1111111111111111111111
111111111111111111111...

result:

ok good job! (1 test case)

Test #216:

score: 30
Accepted
time: 1ms
memory: 6320kb

input:

1
150 129

output:

Yes
1
01
101
0101
10101
010100
1010101
01010100
101010101
0101010100
10101010111
010101010010
1010101011101
01010101000110
111111111111111
1111111111111111
11111111111111111
111111111111111111
1111111111111111111
11111111111111111111
111111111111111111111
1111111111111111111111
111111111111111111111...

result:

ok good job! (1 test case)

Test #217:

score: 30
Accepted
time: 1ms
memory: 8128kb

input:

1
150 44

output:

Yes
1
00
101
0100
10101
010100
1010111
01010010
101011101
0101000110
11111111111
111111111111
1111111111111
11111111111111
111111111111111
1111111111111111
11111111111111111
111111111111111111
1111111111111111111
11111111111111111111
111111111111111111111
1111111111111111111111
111111111111111111111...

result:

ok good job! (1 test case)

Test #218:

score: 30
Accepted
time: 1ms
memory: 6020kb

input:

1
149 58042

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010101
101010101010101
0101010101010101
10101010101010111
010101010101010101
1010101010101010111
01010101010101010111
101010101010101011111
0101010101010101010111
101010101010101010101...

result:

ok good job! (1 test case)

Test #219:

score: 30
Accepted
time: 0ms
memory: 7836kb

input:

1
149 22946

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010101
101010101010101
0101010101010101
10101010101010101
010101010101010101
1010101010101010101
01010101010101010101
101010101010101010101
0101010101010101010101
101010101010101010101...

result:

ok good job! (1 test case)

Test #220:

score: 30
Accepted
time: 1ms
memory: 6100kb

input:

1
150 21975

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010101
101010101010101
0101010101010101
10101010101010101
010101010101010101
1010101010101010101
01010101010101010101
101010101010101010101
0101010101010101010101
101010101010101010101...

result:

ok good job! (1 test case)

Test #221:

score: 30
Accepted
time: 1ms
memory: 7836kb

input:

1
150 12279

output:

Yes
0
11
110
1101
10100
111111
0011010
01010101
101010110
0101011101
10101010100
010101010101
1011101011011
01010101110101
101010101011100
0101010101010101
10101010101011111
010101110101010111
0010101011101010010
01010101010101010000
101010101010101010100
0101010101010101011101
101010101010101110111...

result:

ok good job! (1 test case)

Test #222:

score: 30
Accepted
time: 1ms
memory: 7748kb

input:

1
150 21044

output:

Yes
1
01
111
0101
10111
010101
1110111
01010101
101110101
0101010101
10101010101
010101010101
1010111011111
00010101010101
101010101011111
0101010101010101
10101010101010111
010101010101010111
1010101010101010111
01010101010101011111
101010101010101010101
0101010101010101010101
101010101010101010101...

result:

ok good job! (1 test case)

Test #223:

score: 30
Accepted
time: 1ms
memory: 6116kb

input:

1
149 3859

output:

Yes
1
01
111
0101
10101
111101
0000111
01010100
100011010
0101011111
10100000111
010101010111
1010000000011
00000101010101
101010100101111
0101010111011111
10101010101010101
011001010101010101
0000101011101010110
01010101010101010101
110010101010101010001
0101010101010101010111
101010101010101010101...

result:

ok good job! (1 test case)

Test #224:

score: 30
Accepted
time: 1ms
memory: 6440kb

input:

1
149 2822

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010101
101010101010101
0101010101010101
10101010101010101
010101010101010101
1010101010101010101
01010101010101010100
101010101010101010101
0101010101010101010101
101010101010101010101...

result:

ok good job! (1 test case)

Test #225:

score: 30
Accepted
time: 0ms
memory: 7896kb

input:

1
150 11132

output:

Yes
1
11
100
1101
10010
010101
1010110
01011101
101010100
0101010101
11101001011
111111000101
1010101011100
01010101010101
111010101011111
0101110101010111
10101010101010010
010101010101010000
1010101010101010100
01010101010101011101
101010101000111011110
0101010101010101000100
101010101000101010110...

result:

ok good job! (1 test case)

Test #226:

score: 30
Accepted
time: 1ms
memory: 7940kb

input:

1
150 2249

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010101
101010101010101
0101010101010101
10101010101010101
010101010101010101
1010101010101010101
01010101010101010101
101010101010101010101
0101010101010101010101
101010101010101010101...

result:

ok good job! (1 test case)

Test #227:

score: 30
Accepted
time: 1ms
memory: 7900kb

input:

1
150 29569

output:

Yes
1
01
111
0101
10111
110101
1111101
01010101
101011101
0000011101
10101010111
011001100111
1010101010111
01000100010101
101100001000001
0111010101010111
10101010101110100
010101010001010111
1010101010101011101
01010101010111000100
101010101010101010100
0101000100000101011011
101010101010101101111...

result:

ok good job! (1 test case)

Test #228:

score: 30
Accepted
time: 1ms
memory: 6212kb

input:

5
96 35791
6 0
32 367
13 49
3 1

output:

Yes
1
01
101
0111
11111
010111
1010111
11010111
101010111
1011110011
10101010111
011110011101
1010101111101
11110101010111
101010101011101
0101000100110101
10101010101010111
010101011111110111
1011101010101010101
01010101000100010101
001010101110000000001
1101011101010101010111
101010101011101011101...

result:

ok good job! (5 test cases)

Test #229:

score: 30
Accepted
time: 1ms
memory: 4112kb

input:

5
37 1827
21 52
40 1995
44 1032
7 5

output:

Yes
0
01
111
0100
00101
011111
1010101
01010101
101010111
0101010101
10101010001
010101010111
1010101010111
01010101011111
101010101010101
0101010101011101
10101010100000111
010101010101010101
1010111010001001001
00010101010101010101
101010101010101010111
0101010101010101010110
101010110011101001101...

result:

ok good job! (5 test cases)

Test #230:

score: 30
Accepted
time: 1ms
memory: 6024kb

input:

5
74 4427
43 920
25 422
5 5
3 0

output:

Yes
1
01
111
1101
10111
010101
1010101
01010101
101010111
0101010100
10100011010
010101011111
1010100000111
01010101010111
101010000000011
0100000101010101
10101010100101111
010101010111011111
1010101010101010101
01011001010101010101
110100101011101010110
0101010101010101010101
101010101010101010100...

result:

ok good job! (5 test cases)

Test #231:

score: 30
Accepted
time: 1ms
memory: 6100kb

input:

2
125 56690
24 84

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010101
101010101010101
0101010101010101
10101010101010101
010101010101010101
1010101010101010101
01010101010101010101
101010101010101010101
0101010101010101010101
101010101010101010101...

result:

ok good job! (2 test cases)

Test #232:

score: 30
Accepted
time: 0ms
memory: 5996kb

input:

5
80 19621
46 3138
10 35
8 5
5 1

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010101
101010101010101
0101010101010101
10101010101010101
010101010101010101
1010101010101010101
01010101010101010101
101010101010101010101
0101010101010101010101
101010101010101010101...

result:

ok good job! (5 test cases)

Test #233:

score: 30
Accepted
time: 0ms
memory: 5996kb

input:

1
149 205917

output:

No

result:

ok good job! (1 test case)

Test #234:

score: 30
Accepted
time: 1ms
memory: 5972kb

input:

1
149 91736

output:

Yes
1
00
101
1110
10100
011001
1010001
01001111
101010101
0100010101
10101011111
110001110101
1000101100011
01001101010111
101000101010001
0101010101010000
10101010101010101
010101010101010110
1000100010101010111
01010101010101010111
110000011000101110100
0111010101010101011000
101011101011101000110...

result:

ok good job! (1 test case)

Test #235:

score: 30
Accepted
time: 0ms
memory: 6172kb

input:

1
150 8430

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010101
101010101010101
0101010101010101
10101010101010100
010101010101010101
1010101010101010101
01010101010101010101
101010101010101010111
0101010101010101010111
101010101010101010011...

result:

ok good job! (1 test case)

Test #236:

score: 30
Accepted
time: 1ms
memory: 7760kb

input:

1
150 86431

output:

Yes
1
11
111
1111
11101
001000
1010111
01010101
101010111
0101010111
11101010101
010101010111
1110101010111
01010101011111
100000001000101
1011100011110111
10101010101011111
010101011011110101
1010101010101011101
01010101010111010111
101010101010101010111
0101010101010010011100
110011101011101110101...

result:

ok good job! (1 test case)

Test #237:

score: 30
Accepted
time: 1ms
memory: 7740kb

input:

1
150 139998

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010101
101010101010101
0101010101010101
10101010101010101
010101010101010101
1010101010101010101
01010101010101010101
101010101010101010101
0101010101010101010101
101010101010101010101...

result:

ok good job! (1 test case)

Subtask #5:

score: 15
Accepted

Dependency #4:

100%
Accepted

Test #238:

score: 15
Accepted
time: 0ms
memory: 14832kb

input:

1
599 35641099

output:

No

result:

ok good job! (1 test case)

Test #239:

score: 15
Accepted
time: 3ms
memory: 16248kb

input:

1
600 35820200

output:

No

result:

ok good job! (1 test case)

Test #240:

score: 15
Accepted
time: 0ms
memory: 16260kb

input:

1
599 35641097

output:

No

result:

ok good job! (1 test case)

Test #241:

score: 15
Accepted
time: 3ms
memory: 14420kb

input:

1
599 35641098

output:

No

result:

ok good job! (1 test case)

Test #242:

score: 15
Accepted
time: 3ms
memory: 16436kb

input:

1
600 35820198

output:

No

result:

ok good job! (1 test case)

Test #243:

score: 15
Accepted
time: 3ms
memory: 16492kb

input:

1
600 35820199

output:

No

result:

ok good job! (1 test case)

Test #244:

score: 15
Accepted
time: 2ms
memory: 16212kb

input:

1
600 35820200

output:

No

result:

ok good job! (1 test case)

Test #245:

score: 15
Accepted
time: 2ms
memory: 14420kb

input:

1
599 31149736

output:

No

result:

ok good job! (1 test case)

Test #246:

score: 15
Accepted
time: 0ms
memory: 16384kb

input:

1
600 31381017

output:

No

result:

ok good job! (1 test case)

Test #247:

score: 15
Accepted
time: 1ms
memory: 5828kb

input:

92
3 0
3 1
4 0
4 1
4 2
4 3
4 4
5 0
5 1
5 2
5 3
5 4
5 5
5 6
5 7
5 8
5 9
5 10
6 0
6 1
6 2
6 3
6 4
6 5
6 6
6 7
6 8
6 9
6 10
6 11
6 12
6 13
6 14
6 15
6 16
6 17
6 18
6 19
6 20
7 0
7 1
7 2
7 3
7 4
7 5
7 6
7 7
7 8
7 9
7 10
7 11
7 12
7 13
7 14
7 15
7 16
7 17
7 18
7 19
7 20
7 21
7 22
7 23
7 24
7 25
7 26
7 27...

output:

Yes
1
11
Yes
1
01
Yes
1
11
111
Yes
1
01
111
Yes
1
01
101
No
No
Yes
1
11
111
1111
Yes
1
01
111
1111
Yes
1
01
101
1111
Yes
1
00
101
0100
Yes
1
01
101
0100
Yes
1
01
101
0101
No
No
No
No
No
Yes
1
11
111
1111
11111
Yes
1
01
111
1111
11111
Yes
1
01
101
1111
11111
Yes
1
00
101
0100
11111
Yes
1
01
101
0100
...

result:

ok good job! (92 test cases)

Test #248:

score: 15
Accepted
time: 1ms
memory: 3784kb

input:

81
3 0
3 1
4 0
4 1
4 2
5 0
5 1
5 2
5 3
5 4
5 5
6 0
6 1
6 2
6 3
6 4
6 5
6 6
6 7
6 8
7 0
7 1
7 2
7 3
7 4
7 5
7 6
7 7
7 8
7 9
7 10
7 11
7 12
7 13
7 14
8 0
8 1
8 2
8 3
8 4
8 5
8 6
8 7
8 8
8 9
8 10
8 11
8 12
8 13
8 14
8 15
8 16
8 17
8 18
8 19
8 20
9 0
9 1
9 2
9 3
9 4
9 5
9 6
9 7
9 8
9 9
9 10
9 11
9 12
9 ...

output:

Yes
1
11
Yes
1
01
Yes
1
11
111
Yes
1
01
111
Yes
1
01
101
Yes
1
11
111
1111
Yes
1
01
111
1111
Yes
1
01
101
1111
Yes
1
00
101
0100
Yes
1
01
101
0100
Yes
1
01
101
0101
Yes
1
11
111
1111
11111
Yes
1
01
111
1111
11111
Yes
1
01
101
1111
11111
Yes
1
00
101
0100
11111
Yes
1
01
101
0100
11111
Yes
1
01
101
01...

result:

ok good job! (81 test cases)

Test #249:

score: 15
Accepted
time: 8ms
memory: 14504kb

input:

1
599 8955050

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010101
101010101010101
0101010101010101
10101010101010101
010101010101010101
1010101010101010101
01010101010101010101
101010101010101010101
0101010101010101010101
101010101010101010101...

result:

ok good job! (1 test case)

Test #250:

score: 15
Accepted
time: 4ms
memory: 16160kb

input:

1
600 8999900

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010101
101010101010101
0101010101010101
10101010101010101
010101010101010101
1010101010101010101
01010101010101010101
101010101010101010101
0101010101010101010101
101010101010101010101...

result:

ok good job! (1 test case)

Test #251:

score: 15
Accepted
time: 5ms
memory: 16272kb

input:

1
599 8954812

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010101
101010101010101
0101010101010101
10101010101010101
010101010101010101
1010101010101010101
01010101010101010101
101010101010101010101
0101010101010101010101
101010101010101010101...

result:

ok good job! (1 test case)

Test #252:

score: 15
Accepted
time: 4ms
memory: 15928kb

input:

1
599 8954621

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010101
101010101010101
0101010101010101
10101010101010101
010101010101010101
1010101010101010101
01010101010101010101
101010101010101010101
0101010101010101010101
101010101010101010101...

result:

ok good job! (1 test case)

Test #253:

score: 15
Accepted
time: 8ms
memory: 16364kb

input:

1
600 8998543

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010101
101010101010101
0101010101010101
10101010101010101
010101010101010101
1010101010101010101
01010101010101010101
101010101010101010101
0101010101010101010101
101010101010101010101...

result:

ok good job! (1 test case)

Test #254:

score: 15
Accepted
time: 4ms
memory: 16436kb

input:

1
600 8999826

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010101
101010101010101
0101010101010101
10101010101010101
010101010101010101
1010101010101010101
01010101010101010101
101010101010101010101
0101010101010101010101
101010101010101010101...

result:

ok good job! (1 test case)

Test #255:

score: 15
Accepted
time: 4ms
memory: 16392kb

input:

1
600 8999510

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010101
101010101010101
0101010101010101
10101010101010101
010101010101010101
1010101010101010101
01010101010101010101
101010101010101010101
0101010101010101010101
101010101010101010101...

result:

ok good job! (1 test case)

Test #256:

score: 15
Accepted
time: 9ms
memory: 16372kb

input:

1
599 8345787

output:

Yes
1
11
101
0101
10111
100111
1111111
00011101
101010111
0111111101
10111011111
011111000101
1010111010101
00010111110111
101111111010111
0101010101010101
10101011111011111
010101010101010111
1111101010101110101
01010101000101010111
101110101110111011111
0101010101010101011101
101010101010111111111...

result:

ok good job! (1 test case)

Test #257:

score: 15
Accepted
time: 8ms
memory: 16300kb

input:

1
599 8722378

output:

Yes
1
01
111
0101
11101
011111
1110111
01100111
101111101
0101010101
10101011101
010101010101
1010101011111
01101101011101
111010101010001
0101010101010101
10100010111111101
010101010100010111
1010101010101011111
01010101010101111101
101010101111111001111
0101011111010101111101
101010101011111110101...

result:

ok good job! (1 test case)

Test #258:

score: 15
Accepted
time: 9ms
memory: 16808kb

input:

1
600 8782693

output:

Yes
1
11
001
1111
11111
010101
1011111
11001111
101111111
0101000101
10011011101
010101111111
1010101110111
01010101011101
101010101011101
0101011111010101
01111110101011101
010100010101000111
0111111011111010101
01000101111101010111
111110100010101010101
0101010101010101110101
111010101011111110101...

result:

ok good job! (1 test case)

Test #259:

score: 15
Accepted
time: 4ms
memory: 16288kb

input:

1
600 8889455

output:

Yes
1
11
100
0101
01011
010111
1010110
01010101
101111101
0101010111
10111001111
010101010111
1110101011101
11011101110111
001010111110111
0101010101010101
11111110000011111
010101000101010101
1010111110101011101
00010101010101010011
111110001010111010111
0101010111111111011110
111010101011101011111...

result:

ok good job! (1 test case)

Test #260:

score: 15
Accepted
time: 4ms
memory: 16080kb

input:

1
600 8643126

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010101
101010101010101
0101010101010101
10101010101010101
010101010101010101
1010101010101010101
01010101010101010101
101010101010101010101
0101010101010101010101
101010101010101010101...

result:

ok good job! (1 test case)

Test #261:

score: 15
Accepted
time: 8ms
memory: 16284kb

input:

1
599 7287746

output:

Yes
1
01
101
0101
11111
010111
1011111
01011111
111110101
0011010101
10101010101
010001110101
1011101010010
01000101010101
101111101010111
0101000101011011
10111011111011101
110011111101011101
1010101010101011111
01100101111101010101
101010101011111010101
0011010101010101110111
101011101010101110111...

result:

ok good job! (1 test case)

Test #262:

score: 15
Accepted
time: 9ms
memory: 16220kb

input:

1
599 8113340

output:

Yes
1
11
100
0111
10101
010101
1011111
01010111
111110101
0101010101
10111010111
010101010101
1011111111101
01010111110111
101011101111101
1101011101011101
10111110111011101
010101010111011101
1011101010101110101
01000111111100101111
101010101110101010101
0101010011111101111101
101111101110111010111...

result:

ok good job! (1 test case)

Test #263:

score: 15
Accepted
time: 4ms
memory: 14544kb

input:

1
600 6980363

output:

Yes
1
11
101
0111
10100
011101
1010101
11010111
111111111
0101011101
11011000011
110001010101
1101101110111
01110011010111
101111111011111
0101010111011111
10101011101010101
010100010101010111
1010101010110110111
11010001110001010101
111110100111100000111
0101011101010101010100
111111111011101111101...

result:

ok good job! (1 test case)

Test #264:

score: 15
Accepted
time: 4ms
memory: 16784kb

input:

1
600 6932760

output:

Yes
1
01
101
0101
10111
010111
1110101
10001010
101010101
0101010100
11101011011
010101010111
1110111011011
01010101010100
101010101010001
0101010101010101
10101010111000111
010111011101010111
1011101010111011101
01110111111101010110
101011101010101110111
0101010101110101010101
101010101110101011111...

result:

ok good job! (1 test case)

Test #265:

score: 15
Accepted
time: 4ms
memory: 16184kb

input:

1
600 8996064

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010101
101010101010101
0101010101010101
10101010101010101
010101010101010101
1010101010101010101
01010101010101010101
101010101010101010101
0101010101010101010101
101010101010101010101...

result:

ok good job! (1 test case)

Test #266:

score: 15
Accepted
time: 9ms
memory: 16552kb

input:

1
599 8910201

output:

Yes
0
11
000
0100
11001
010101
1010000
01010111
011110011
0101011111
10101011111
010101010111
1101110111100
01010101110101
001110110011000
0001111101000100
11101110101000111
010101010101010101
0101101101101100010
01010101010101001100
101010100010101111111
0101010001010101011100
111110110100010111101...

result:

ok good job! (1 test case)

Test #267:

score: 15
Accepted
time: 10ms
memory: 14560kb

input:

1
600 8955051

output:

Yes
1
11
111
1110
10111
010101
1110111
01010011
100011101
1101010101
10101111101
010101010111
1010111111111
01110111011111
111110000111101
0101010101010101
10000010001110111
011101010111111111
1110111110111011111
01010100010101011101
100010000110100110100
0101010101001101010100
111111000110101010001...

result:

ok good job! (1 test case)

Test #268:

score: 15
Accepted
time: 0ms
memory: 16700kb

input:

1
599 8955056

output:

No

result:

ok good job! (1 test case)

Test #269:

score: 15
Accepted
time: 2ms
memory: 16192kb

input:

1
599 8955056

output:

No

result:

ok good job! (1 test case)

Test #270:

score: 15
Accepted
time: 3ms
memory: 16416kb

input:

1
600 8999908

output:

No

result:

ok good job! (1 test case)

Test #271:

score: 15
Accepted
time: 0ms
memory: 16384kb

input:

1
600 8999908

output:

No

result:

ok good job! (1 test case)

Test #272:

score: 15
Accepted
time: 2ms
memory: 14712kb

input:

1
600 8999904

output:

No

result:

ok good job! (1 test case)

Test #273:

score: 15
Accepted
time: 3ms
memory: 16268kb

input:

1
599 992

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010100
101010101010111
0101010101010010
10101010101010101
010101010101010110
1010101010101010101
01010101010101010100
101010101010101010111
0101010101010101010010
101010101010101010101...

result:

ok good job! (1 test case)

Test #274:

score: 15
Accepted
time: 3ms
memory: 16404kb

input:

1
599 337

output:

Yes
1
01
101
0100
10101
011100
1010111
01010000
101011101
0110111010
10101010100
010101010100
1010111110111
00010111010110
111010101001101
0101010101010100
10101010101010111
010100010101110010
1010101010101111101
01010001010101000100
111111111111111111111
1111111111111111111111
111111111111111111111...

result:

ok good job! (1 test case)

Test #275:

score: 15
Accepted
time: 7ms
memory: 16304kb

input:

1
600 1774

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010101
101010101010101
0101010101010101
10101010101010101
010101010101010101
1010101010101010101
01010101010101010101
101010101010101010101
0101010101010101010101
101010101010101010101...

result:

ok good job! (1 test case)

Test #276:

score: 15
Accepted
time: 3ms
memory: 16180kb

input:

1
600 275

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010100
1010101010101
01010101010100
101010101010111
0101010101010010
10101010101011101
010101010101000110
1111111111111111111
11111111111111111111
111111111111111111111
1111111111111111111111
111111111111111111111...

result:

ok good job! (1 test case)

Test #277:

score: 15
Accepted
time: 3ms
memory: 16200kb

input:

1
600 102

output:

Yes
1
01
101
0111
10101
010101
1010111
01010110
101011100
0101010100
10101010111
010101010100
1010101010111
11111111111111
111111111111111
1111111111111111
11111111111111111
111111111111111111
1111111111111111111
11111111111111111111
111111111111111111111
1111111111111111111111
111111111111111111111...

result:

ok good job! (1 test case)

Test #278:

score: 15
Accepted
time: 7ms
memory: 16492kb

input:

1
599 355600

output:

Yes
1
00
101
1010
10101
101000
1110111
10000000
101010111
0011111100
10001010100
111101011101
1010101010101
01101001111110
101010101010100
0101010101011111
10001010000000111
011100001001110101
1010101000111010100
01010101010000010100
101010100010000010101
0101101101010101010111
101010101010101010101...

result:

ok good job! (1 test case)

Test #279:

score: 15
Accepted
time: 3ms
memory: 16104kb

input:

1
599 475943

output:

Yes
1
01
101
0110
11111
010111
1010101
10001101
111111111
0110010111
10111010111
010101110011
1011111011101
00101111101000
101011100110000
1010111100111011
10101110101110111
110100010101100101
1010101010100010101
01011100001111110011
100001101010001000100
0101001010100110001110
101010101010101010001...

result:

ok good job! (1 test case)

Test #280:

score: 15
Accepted
time: 7ms
memory: 16048kb

input:

1
600 120574

output:

Yes
1
11
100
0000
10111
010100
1010101
10000011
100010101
0101001101
10101110101
100111010110
1010100010101
01010111010000
101010101010101
0101010111110110
10101010101010100
010101110101011001
1010101010101010001
01010101010101001111
001010101010101010101
0101010101010101010101
101010101010101010111...

result:

ok good job! (1 test case)

Test #281:

score: 15
Accepted
time: 3ms
memory: 14540kb

input:

1
600 167075

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010101
101010101010101
0101010101010101
10101010101010101
010101010101010101
1010101010101010101
01010101010101010101
101010101010101010101
0101010101010101010101
101010101010101010101...

result:

ok good job! (1 test case)

Test #282:

score: 15
Accepted
time: 3ms
memory: 16036kb

input:

1
600 302502

output:

Yes
1
01
111
0111
11101
010101
1010101
01010101
011010111
0101111101
10101010101
010101010111
1010101010101
01010101010101
101110101110111
0101010101010101
10101110111110101
010101010101010111
1010101010101010101
01010101010101011101
101010101010101010101
0101010101010101010101
110001101110101010101...

result:

ok good job! (1 test case)

Test #283:

score: 15
Accepted
time: 7ms
memory: 16536kb

input:

1
599 2048448

output:

Yes
1
00
111
1110
00110
111100
1011111
01010100
101001100
0101010100
10101111101
111101000100
0000101010100
11010011101101
111010101010101
0101010101010101
11101010101010101
010101010101010100
1111101010101010111
01010101010101010101
101011101010001011101
1101010111010111111000
101111101010101011101...

result:

ok good job! (1 test case)

Test #284:

score: 15
Accepted
time: 3ms
memory: 14700kb

input:

1
599 960012

output:

Yes
0
00
110
0111
10100
010101
1010111
11110111
101010111
1101010101
10101010101
010101010111
1010101010100
01010101010111
101010010010000
0101011111100101
10101010101010010
010101010101110110
1010101010111001101
01010101010101010101
101010101010101010111
0101010101111100011010
101011110010101010101...

result:

ok good job! (1 test case)

Test #285:

score: 15
Accepted
time: 7ms
memory: 16260kb

input:

1
600 141777

output:

Yes
0
10
100
1101
01010
010101
1111101
01010101
001010111
0101010001
10001011001
010101011010
1010101010111
01010111010100
101010101010001
0101011000010011
10101010100010111
010101010101101101
1010101010101110101
01010111101101011100
101010100010101010101
0101010101110101110010
101010101010101010101...

result:

ok good job! (1 test case)

Test #286:

score: 15
Accepted
time: 7ms
memory: 14560kb

input:

1
600 1243588

output:

Yes
0
11
110
1100
10100
010111
0110001
01000000
101110110
0000000010
10101010101
010001010001
1011111010110
01000100000100
000010101111000
0101010111000000
10000000101110111
010001000001110110
1111111001101110101
01010101100101000100
111111010111101011101
0101110111010101111101
101111101010110110101...

result:

ok good job! (1 test case)

Test #287:

score: 15
Accepted
time: 3ms
memory: 16024kb

input:

1
600 487443

output:

Yes
1
10
111
1001
10111
100101
1010111
10111111
111010101
0011010101
10101011001
010101010100
1111111010101
10100011100100
111010111000101
0010100101110000
10101011100110000
110110000100011101
1110101010111010101
01111101111101101110
101011101010101010111
0101011100010110010010
101000011010100010001...

result:

ok good job! (1 test case)

Test #288:

score: 15
Accepted
time: 0ms
memory: 8188kb

input:

6
74 16212
201 158009
162 66397
47 1639
112 49261
4 2

output:

Yes
1
11
111
0101
00101
000111
1010111
11011101
101011111
0101010101
10101011111
110101100111
1010101010111
01011101011111
101010101010111
1101010101011101
10101010101011111
010101010101111111
1010100010100010101
10000110110110101101
101010101010111110111
0101010100000101010101
001010101010001000000...

result:

ok good job! (6 test cases)

Test #289:

score: 15
Accepted
time: 3ms
memory: 14580kb

input:

5
529 4771609
21 288
42 2532
5 0
3 1

output:

Yes
1
11
111
0101
10001
000110
1010111
01011101
111011111
1101011101
11111111101
010011010111
1010111111101
10000010101101
101010101010111
0101001001010101
00111001101100011
010101111101010101
1010101010101010111
11001001100101110111
101010101011111011101
0001010101010111001101
101010101010101011111...

result:

ok good job! (5 test cases)

Test #290:

score: 15
Accepted
time: 2ms
memory: 12728kb

input:

9
481 2328203
26 209
27 95
12 7
13 41
23 129
9 25
6 2
3 0

output:

Yes
0
10
101
0111
10111
100101
1110111
01010100
101010111
0010011110
11101110101
110111110111
1010100001001
00010101011001
101010101110010
1010001111011100
10000010000000011
100101110011111111
1010101010100001011
11010101011101111100
101010101010101000001
1111010111010111000100
101110101010101011101...

result:

ok good job! (9 test cases)

Test #291:

score: 15
Accepted
time: 7ms
memory: 14208kb

input:

5
552 4970748
9 15
16 122
14 105
8 12

output:

Yes
1
00
001
1010
10101
010111
1011001
00111110
111011111
0101001000
11101010110
010101010101
1010101010101
01010111011100
101010101011111
1101011101011100
10101010101010111
111101010010110110
1011101011111010001
11010100010100111111
101010111010101000010
0101010111010001011111
101010101010101010101...

result:

ok good job! (5 test cases)

Test #292:

score: 15
Accepted
time: 3ms
memory: 7992kb

input:

7
222 86559
159 151626
166 15153
25 610
4 2
17 184
7 7

output:

Yes
1
11
111
1111
11101
001000
1010111
01010101
101010111
0101010111
11101010101
010101010111
1110101010111
01010101011111
100000001000101
1011100011110111
10101010101011111
010101011011110101
1010101010101011101
01010101010111010111
101010101010101010111
0101010101010010011100
110011101011101110101...

result:

ok good job! (7 test cases)

Test #293:

score: 15
Accepted
time: 8ms
memory: 16104kb

input:

1
599 3698652

output:

Yes
1
00
110
1110
10101
010110
1010111
00101101
111110101
0111010100
11011011100
110111011011
1010101010101
01010101010101
101011101010111
0101010111010111
10101110111011111
100101111011011111
1010101010101010101
11001101110100011101
101010101011111110101
0101010101010101110101
111011101010111011101...

result:

ok good job! (1 test case)

Test #294:

score: 15
Accepted
time: 8ms
memory: 16552kb

input:

1
599 2692237

output:

Yes
1
11
010
0111
10111
110111
1111101
01011101
111011101
0101111111
10001001001
010101000101
1010101011111
01010111111111
101010101111111
0100110101011111
10001000011010001
010001010100110101
1010101010101010111
01000001010101011111
101010111110101011111
0101010111010101011101
000110111000100011101...

result:

ok good job! (1 test case)

Test #295:

score: 15
Accepted
time: 4ms
memory: 16332kb

input:

1
600 2516897

output:

Yes
0
10
011
1000
11000
011101
1111000
01010001
101011110
1001010110
11101101000
110101000100
1011110110111
01010101010101
111110101011111
0111010101110111
10101011101010111
000111001101010100
1010101110101010111
00111000000111110110
111110111010101010101
0100010001111101011100
101010101010101010000...

result:

ok good job! (1 test case)

Test #296:

score: 15
Accepted
time: 8ms
memory: 16420kb

input:

1
600 2315976

output:

Yes
1
00
101
0001
11101
000100
1111101
11110011
111110111
0111111001
10101010101
100100111111
1011101111111
00010101010001
101111001101001
0101010101010100
11101010100111101
101101010101010011
1010101011111011100
01010111011101101111
101010101011111010111
0101010101010101110101
101100101000101110101...

result:

ok good job! (1 test case)

Test #297:

score: 15
Accepted
time: 3ms
memory: 14820kb

input:

1
600 969595

output:

Yes
1
10
111
1010
10101
110000
1011001
00110110
111111111
0101110111
10101111101
010100010101
1010111110101
11010101010101
001001101110001
0101011000010111
11101011100110111
011001010100000101
1110111110101010101
01010001000001010101
101011101010101010111
0101000101010101010101
111110111010101011111...

result:

ok good job! (1 test case)

Subtask #6:

score: 23
Accepted

Dependency #1:

100%
Accepted

Dependency #2:

100%
Accepted

Dependency #3:

100%
Accepted

Dependency #4:

100%
Accepted

Dependency #5:

100%
Accepted

Test #298:

score: 23
Accepted
time: 2ms
memory: 3980kb

input:

379
3 0
3 1
4 0
4 1
4 2
5 0
5 1
5 2
5 3
5 4
6 0
6 1
6 2
6 3
6 4
6 5
6 6
7 0
7 1
7 2
7 3
7 4
7 5
7 6
7 7
7 8
7 9
8 0
8 1
8 2
8 3
8 4
8 5
8 6
8 7
8 8
8 9
8 10
8 11
8 12
9 0
9 1
9 2
9 3
9 4
9 5
9 6
9 7
9 8
9 9
9 10
9 11
9 12
9 13
9 14
9 15
9 16
10 0
10 1
10 2
10 3
10 4
10 5
10 6
10 7
10 8
10 9
10 10
10...

output:

Yes
1
11
Yes
1
01
Yes
1
11
111
Yes
1
01
111
Yes
1
01
101
Yes
1
11
111
1111
Yes
1
01
111
1111
Yes
1
01
101
1111
Yes
1
00
101
0100
Yes
1
01
101
0100
Yes
1
11
111
1111
11111
Yes
1
01
111
1111
11111
Yes
1
01
101
1111
11111
Yes
1
00
101
0100
11111
Yes
1
01
101
0100
11111
Yes
1
01
101
0101
11111
Yes
1
01
...

result:

ok good job! (379 test cases)

Test #299:

score: 23
Accepted
time: 226ms
memory: 83232kb

input:

10
4017 2564275
484 28572
129 402
192 3351
113 188
31 98
11 4
4 2
4 1
13 2

output:

Yes
1
01
110
0101
00001
100101
1010000
01010101
110111100
0101010001
10101011110
000101010000
1110011100000
00010101010100
110111010010101
0101010101010101
01011010101011101
010101010101010101
1110101010101011111
01000101011101010100
101010101010101010101
0101010101000111111110
111010101010101010111...

result:

ok good job! (10 test cases)

Test #300:

score: 23
Accepted
time: 86ms
memory: 43428kb

input:

12
2006 756194
319 10305
479 35228
1295 125738
12 4
427 11376
111 1348
303 17209
39 52
3 0
3 1
3 0

output:

Yes
1
00
111
0100
10110
010111
1010110
01011100
101010101
0101000100
10100010001
110111011101
1000100000000
01001000001111
101010111011110
0101110111011111
11101000101010110
010001011101011100
1011100010011010111
11100101110111010101
111110100010101011110
0101010101011101011101
101010101010111010101...

result:

ok good job! (12 test cases)

Test #301:

score: 23
Accepted
time: 134ms
memory: 63824kb

input:

9
3004 1215321
1223 238579
259 4165
424 33877
25 6
38 170
7 6
12 9
8 1

output:

Yes
1
01
101
0101
10101
010101
1011101
01010101
101110101
0101010101
10101010111
010101010101
1010101111111
01000101010101
101010101011101
0101000101010101
10101010101011101
010101010100010101
1010101010101010101
01010101010101010100
101010101111101010111
0101010101010101010111
101010101010101010111...

result:

ok good job! (9 test cases)

Test #302:

score: 23
Accepted
time: 0ms
memory: 3708kb

input:

1
6 3

output:

Yes
1
00
101
0100
11111

result:

ok good job! (1 test case)

Test #303:

score: 23
Accepted
time: 0ms
memory: 3768kb

input:

1
7 4

output:

Yes
1
01
101
0100
11111
111111

result:

ok good job! (1 test case)

Test #304:

score: 23
Accepted
time: 0ms
memory: 4064kb

input:

1
19 37

output:

Yes
1
01
101
0101
10101
010101
1010111
01010100
101010111
1111111111
11111111111
111111111111
1111111111111
11111111111111
111111111111111
1111111111111111
11111111111111111
111111111111111111

result:

ok good job! (1 test case)

Test #305:

score: 23
Accepted
time: 0ms
memory: 3768kb

input:

1
20 90

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010100
1111111111111
11111111111111
111111111111111
1111111111111111
11111111111111111
111111111111111111
1111111111111111111

result:

ok good job! (1 test case)

Test #306:

score: 23
Accepted
time: 1ms
memory: 6016kb

input:

1
149 1610

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010101
101010101010101
0101010101010101
10101010101010101
010101010101010101
1010101010101010101
01010101010101010111
101010101010101010101
0101010101010101010101
101010101010101010101...

result:

ok good job! (1 test case)

Test #307:

score: 23
Accepted
time: 1ms
memory: 6056kb

input:

1
150 895

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010101
101010101010101
0101010101010101
10101010101010101
010101010101010101
1010101010101010001
01010101010101010111
101010101010101010111
0101010101010101011110
101010101010101000111...

result:

ok good job! (1 test case)

Test #308:

score: 23
Accepted
time: 3ms
memory: 14504kb

input:

1
599 83482

output:

Yes
1
01
110
0111
10101
010101
1011101
01010101
101101010
0111011100
00001010101
010101010001
1010101010101
01010111010110
101010100010111
0101010101010111
10001001101110000
010101011101011000
1010101000101001000
01010101011110000110
110111011001010011100
0101010101010101010100
101010101010100010001...

result:

ok good job! (1 test case)

Test #309:

score: 23
Accepted
time: 3ms
memory: 16316kb

input:

1
600 23667

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010101
101010101010101
0101010101010101
10101010101010101
010101010101010101
1010101010101010101
01010101010101010101
101010101010101010101
0101010101010101010101
101010101010101010101...

result:

ok good job! (1 test case)

Test #310:

score: 23
Accepted
time: 350ms
memory: 101992kb

input:

1
4999 3217919

output:

Yes
1
11
111
1111
11100
010100
1110101
01011111
111011101
0111010100
10101110101
010101110011
1010111010111
01010101000111
101110101110111
1111111100101101
00100111101010000
010101010101010100
1010101010101011111
11010101010011010011
101010111111101000101
0101010001000101010101
101010111111111010101...

result:

ok good job! (1 test case)

Test #311:

score: 23
Accepted
time: 331ms
memory: 101836kb

input:

1
4999 3832640

output:

Yes
1
11
101
0101
10101
000111
1111101
00011111
111111101
1101111011
10111011100
110101000101
1111111010111
11011100111111
111011101101101
0101110101010101
10101010101011101
000101010101110101
1111101111011111111
01010111010101010101
101111101010111110101
0101010101010101010101
111111111010101010111...

result:

ok good job! (1 test case)

Test #312:

score: 23
Accepted
time: 328ms
memory: 101792kb

input:

1
5000 980053

output:

Yes
0
00
001
0001
01110
010101
0001100
01010101
011011101
1111011100
10101010111
110101010111
1010101010101
01010101010101
101010101010100
0101010101010111
10101010010010000
101001001111100101
1010101010101010010
01010101010101110110
101010101010101001101
0101010101010101000101
101010101010101010101...

result:

ok good job! (1 test case)

Test #313:

score: 23
Accepted
time: 328ms
memory: 102040kb

input:

1
5000 1846859

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010101
101010101010101
0101010101010101
10101010101010101
010101010101010101
1010101010101010101
01010101010101010101
101010101010101010101
0101010101010101010101
101010101010101010101...

result:

ok good job! (1 test case)

Test #314:

score: 23
Accepted
time: 340ms
memory: 101780kb

input:

1
5000 4406415

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010101
101010101010101
0101010101010101
10101010101010101
010101010101010101
1010101010101010101
01010101010101010101
101010101010101010101
0101010101010101010101
101010101010101010101...

result:

ok good job! (1 test case)

Test #315:

score: 23
Accepted
time: 0ms
memory: 3700kb

input:

1
4 2

output:

Yes
1
01
101

result:

ok good job! (1 test case)

Test #316:

score: 23
Accepted
time: 0ms
memory: 3672kb

input:

1
5 4

output:

Yes
1
01
101
0100

result:

ok good job! (1 test case)

Test #317:

score: 23
Accepted
time: 0ms
memory: 3772kb

input:

1
6 6

output:

Yes
1
01
101
0100
10111

result:

ok good job! (1 test case)

Test #318:

score: 23
Accepted
time: 0ms
memory: 3708kb

input:

1
7 9

output:

Yes
1
00
111
0110
10101
010100

result:

ok good job! (1 test case)

Test #319:

score: 23
Accepted
time: 1ms
memory: 5732kb

input:

1
19 81

output:

Yes
1
01
101
0101
10101
010100
1010101
01010100
101010111
0101010010
10101011101
010101000110
1111111111111
11111111111111
111111111111111
1111111111111111
11111111111111111
111111111111111111

result:

ok good job! (1 test case)

Test #320:

score: 23
Accepted
time: 0ms
memory: 3840kb

input:

1
20 90

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010100
1111111111111
11111111111111
111111111111111
1111111111111111
11111111111111111
111111111111111111
1111111111111111111

result:

ok good job! (1 test case)

Test #321:

score: 23
Accepted
time: 1ms
memory: 7776kb

input:

1
149 5476

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010101
101010101010101
0101010101010101
10101010101010101
010101010101010101
1010101010101010101
01010101010101010101
101010101010101010101
0101010101010101010101
101010101010101010101...

result:

ok good job! (1 test case)

Test #322:

score: 23
Accepted
time: 1ms
memory: 6168kb

input:

1
150 5550

output:

Yes
1
11
000
0101
10011
000011
0001101
00011000
101010111
0101010001
10101010101
011101010101
0000101010110
01011100010100
101111111011011
0101010101011111
10100010100000101
010101010111010111
1010111010000000011
11010110101101010101
001011101010100101010
0101010101010111011111
101010111010111010001...

result:

ok good job! (1 test case)

Test #323:

score: 23
Accepted
time: 3ms
memory: 16392kb

input:

1
599 89401

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010101
101010101010101
0101010101010101
10101010101010101
010101010101010101
1010101010101010101
01010101010101010101
101010101010101010101
0101010101010101010101
101010101010101010101...

result:

ok good job! (1 test case)

Test #324:

score: 23
Accepted
time: 4ms
memory: 16708kb

input:

1
600 89700

output:

Yes
1
01
101
1110
11100
011001
1010101
10001010
101001011
1101010111
10101011111
010101010111
1011101111111
01010101010111
101011101110101
0101010101010111
10100000001000101
001000111011110111
1010101010111011111
01010101011011111101
101110101110111011101
0101010000011111010111
101011101010101010101...

result:

ok good job! (1 test case)

Test #325:

score: 23
Accepted
time: 356ms
memory: 101820kb

input:

1
4999 6245001

output:

Yes
1
11
011
1001
11111
011011
1111101
01010101
001111101
0001111111
00111010111
010101010001
1011101010101
01010101010101
101111111110101
0101111101010111
10111011111110111
010101010001000001
1111101110101011111
01010101000101010101
001110101111111010101
0101010101010101010111
011011101011111010101...

result:

ok good job! (1 test case)

Test #326:

score: 23
Accepted
time: 327ms
memory: 101772kb

input:

1
5000 6247500

output:

Yes
1
11
111
1001
11111
011111
1110101
01010101
001111101
0001111111
00111010111
010101010001
1110101111101
01010101010101
101111111110101
0101111101010111
11111011111111111
010101010001010101
1111101110101011111
01010101000101010101
001110111111101011101
0101010101010101010111
011011101011111010101...

result:

ok good job! (1 test case)

Test #327:

score: 23
Accepted
time: 1ms
memory: 4000kb

input:

1
4 0

output:

Yes
1
11
111

result:

ok good job! (1 test case)

Test #328:

score: 23
Accepted
time: 0ms
memory: 5968kb

input:

1
5 2

output:

Yes
1
01
101
1111

result:

ok good job! (1 test case)

Test #329:

score: 23
Accepted
time: 0ms
memory: 4004kb

input:

1
6 3

output:

Yes
1
00
101
0100
11111

result:

ok good job! (1 test case)

Test #330:

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

input:

1
7 5

output:

Yes
1
01
101
0101
11111
111111

result:

ok good job! (1 test case)

Test #331:

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

input:

1
19 76

output:

Yes
1
01
101
0100
10111
010010
1010101
01010100
101010111
0101110010
10101011101
010101000110
1111111111111
11111111111111
111111111111111
1111111111111111
11111111111111111
111111111111111111

result:

ok good job! (1 test case)

Test #332:

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

input:

1
20 85

output:

Yes
1
01
101
0101
10101
010101
1010101
01010100
101010111
0101010010
10101010101
010101010100
1111111111111
11111111111111
111111111111111
1111111111111111
11111111111111111
111111111111111111
1111111111111111111

result:

ok good job! (1 test case)

Test #333:

score: 23
Accepted
time: 0ms
memory: 7940kb

input:

1
149 5475

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010101
101010101010101
0101010101010101
10101010101010101
010101010101010101
1010101010101010101
01010101010101010101
101010101010101010101
0101010101010101010101
101010101010101010101...

result:

ok good job! (1 test case)

Test #334:

score: 23
Accepted
time: 1ms
memory: 6068kb

input:

1
150 5547

output:

Yes
1
11
000
0101
10011
000011
0001101
00011000
101010111
0101010001
10101010101
011101010101
0000101010110
01011100010100
101111111011011
0101010101011111
10100010100000101
010101010111010111
1010011010000000011
11010110101101010101
001011101010100101010
0101010101010111011111
101010111010111010001...

result:

ok good job! (1 test case)

Test #335:

score: 23
Accepted
time: 5ms
memory: 16448kb

input:

1
599 89399

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010101
101010101010101
0101010101010101
10101010101010101
010101010101010101
1010101010101010101
01010101010101010101
101010101010101010101
0101010101010101010101
101010101010101010101...

result:

ok good job! (1 test case)

Test #336:

score: 23
Accepted
time: 3ms
memory: 16260kb

input:

1
600 89699

output:

Yes
1
01
101
1110
11100
011001
1010101
10001010
101001011
1101010111
10101011111
010101010111
1011101111111
01010101010111
101011101110101
0101010101010111
10100000001000101
001000111011110111
1010101010111011111
01010101011011111101
101110101110111011101
0101010000011111010111
101011101010101010101...

result:

ok good job! (1 test case)

Test #337:

score: 23
Accepted
time: 342ms
memory: 101796kb

input:

1
4999 6244996

output:

Yes
1
11
011
1001
11111
011011
1111101
01010101
001111101
0001111111
00111010111
010101010001
1011101010101
01010101010101
101111111110101
0101111101010111
10111011111110111
010101010001000001
1111101110101011111
01010101000101010101
001110101111111010101
0101010101010101010111
011011101011111010101...

result:

ok good job! (1 test case)

Test #338:

score: 23
Accepted
time: 337ms
memory: 101860kb

input:

1
4999 6244998

output:

Yes
1
11
011
1001
11111
011011
1111101
01010101
001111101
0001111111
00111010111
010101010001
1011101010101
01010101010101
101111111110101
0101111101010111
10111011111110111
010101010001000001
1111101110101011111
01010101000101010101
001110101111111010101
0101010101010101010111
011011101011111010101...

result:

ok good job! (1 test case)

Test #339:

score: 23
Accepted
time: 323ms
memory: 102068kb

input:

1
5000 6247496

output:

Yes
1
11
111
1001
11111
011111
1110101
01010101
001111101
0001111111
00111010111
010101010001
1110101111101
01010101010101
101111111110101
0101111101010111
11111011111111111
010101010001010101
1111101110101011111
01010101000101010101
001110111111101011101
0101010101010101010111
011011101011111010101...

result:

ok good job! (1 test case)

Test #340:

score: 23
Accepted
time: 340ms
memory: 101884kb

input:

1
5000 6247496

output:

Yes
1
11
111
1001
11111
011111
1110101
01010101
001111101
0001111111
00111010111
010101010001
1110101111101
01010101010101
101111111110101
0101111101010111
11111011111111111
010101010001010101
1111101110101011111
01010101000101010101
001110111111101011101
0101010101010101010111
011011101011111010101...

result:

ok good job! (1 test case)

Test #341:

score: 23
Accepted
time: 82ms
memory: 101628kb

input:

1
4999 20808342499

output:

No

result:

ok good job! (1 test case)

Test #342:

score: 23
Accepted
time: 79ms
memory: 101620kb

input:

1
5000 20820835000

output:

No

result:

ok good job! (1 test case)

Test #343:

score: 23
Accepted
time: 88ms
memory: 101812kb

input:

1
4999 20808342499

output:

No

result:

ok good job! (1 test case)

Test #344:

score: 23
Accepted
time: 88ms
memory: 101836kb

input:

1
4999 20808342498

output:

No

result:

ok good job! (1 test case)

Test #345:

score: 23
Accepted
time: 87ms
memory: 101616kb

input:

1
4999 20808342499

output:

No

result:

ok good job! (1 test case)

Test #346:

score: 23
Accepted
time: 87ms
memory: 101628kb

input:

1
5000 20820834999

output:

No

result:

ok good job! (1 test case)

Test #347:

score: 23
Accepted
time: 83ms
memory: 101572kb

input:

1
5000 20820834999

output:

No

result:

ok good job! (1 test case)

Test #348:

score: 23
Accepted
time: 88ms
memory: 101940kb

input:

1
5000 20820835000

output:

No

result:

ok good job! (1 test case)

Test #349:

score: 23
Accepted
time: 92ms
memory: 101528kb

input:

1
5000 20820834999

output:

No

result:

ok good job! (1 test case)

Test #350:

score: 23
Accepted
time: 86ms
memory: 101840kb

input:

1
5000 20820834999

output:

No

result:

ok good job! (1 test case)

Test #351:

score: 23
Accepted
time: 87ms
memory: 101852kb

input:

1
4999 18290677170

output:

No

result:

ok good job! (1 test case)

Test #352:

score: 23
Accepted
time: 83ms
memory: 101604kb

input:

1
5000 18277696017

output:

No

result:

ok good job! (1 test case)

Test #353:

score: 23
Accepted
time: 0ms
memory: 5820kb

input:

527
3 0
3 1
4 0
4 1
4 2
4 3
4 4
5 0
5 1
5 2
5 3
5 4
5 5
5 6
5 7
5 8
5 9
5 10
6 0
6 1
6 2
6 3
6 4
6 5
6 6
6 7
6 8
6 9
6 10
6 11
6 12
6 13
6 14
6 15
6 16
6 17
6 18
6 19
6 20
7 0
7 1
7 2
7 3
7 4
7 5
7 6
7 7
7 8
7 9
7 10
7 11
7 12
7 13
7 14
7 15
7 16
7 17
7 18
7 19
7 20
7 21
7 22
7 23
7 24
7 25
7 26
7 2...

output:

Yes
1
11
Yes
1
01
Yes
1
11
111
Yes
1
01
111
Yes
1
01
101
No
No
Yes
1
11
111
1111
Yes
1
01
111
1111
Yes
1
01
101
1111
Yes
1
00
101
0100
Yes
1
01
101
0100
Yes
1
01
101
0101
No
No
No
No
No
Yes
1
11
111
1111
11111
Yes
1
01
111
1111
11111
Yes
1
01
101
1111
11111
Yes
1
00
101
0100
11111
Yes
1
01
101
0100
...

result:

ok good job! (527 test cases)

Test #354:

score: 23
Accepted
time: 0ms
memory: 4004kb

input:

437
3 0
3 1
4 0
4 1
4 2
5 0
5 1
5 2
5 3
5 4
5 5
6 0
6 1
6 2
6 3
6 4
6 5
6 6
6 7
6 8
7 0
7 1
7 2
7 3
7 4
7 5
7 6
7 7
7 8
7 9
7 10
7 11
7 12
7 13
7 14
8 0
8 1
8 2
8 3
8 4
8 5
8 6
8 7
8 8
8 9
8 10
8 11
8 12
8 13
8 14
8 15
8 16
8 17
8 18
8 19
8 20
9 0
9 1
9 2
9 3
9 4
9 5
9 6
9 7
9 8
9 9
9 10
9 11
9 12
9...

output:

Yes
1
11
Yes
1
01
Yes
1
11
111
Yes
1
01
111
Yes
1
01
101
Yes
1
11
111
1111
Yes
1
01
111
1111
Yes
1
01
101
1111
Yes
1
00
101
0100
Yes
1
01
101
0100
Yes
1
01
101
0101
Yes
1
11
111
1111
11111
Yes
1
01
111
1111
11111
Yes
1
01
101
1111
11111
Yes
1
00
101
0100
11111
Yes
1
01
101
0100
11111
Yes
1
01
101
01...

result:

ok good job! (437 test cases)

Test #355:

score: 23
Accepted
time: 406ms
memory: 101680kb

input:

1
4999 5205208750

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010101
101010101010101
0101010101010101
10101010101010101
010101010101010101
1010101010101010101
01010101010101010101
101010101010101010101
0101010101010101010101
101010101010101010101...

result:

ok good job! (1 test case)

Test #356:

score: 23
Accepted
time: 391ms
memory: 101684kb

input:

1
5000 5208332500

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010101
101010101010101
0101010101010101
10101010101010101
010101010101010101
1010101010101010101
01010101010101010101
101010101010101010101
0101010101010101010101
101010101010101010101...

result:

ok good job! (1 test case)

Test #357:

score: 23
Accepted
time: 385ms
memory: 101692kb

input:

1
4999 5205204564

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010101
101010101010101
0101010101010101
10101010101010101
010101010101010101
1010101010101010101
01010101010101010101
101010101010101010101
0101010101010101010101
101010101010101010101...

result:

ok good job! (1 test case)

Test #358:

score: 23
Accepted
time: 399ms
memory: 101556kb

input:

1
4999 5205207651

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010101
101010101010101
0101010101010101
10101010101010101
010101010101010101
1010101010101010101
01010101010101010101
101010101010101010101
0101010101010101010101
101010101010101010101...

result:

ok good job! (1 test case)

Test #359:

score: 23
Accepted
time: 385ms
memory: 101664kb

input:

1
4999 5205206252

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010101
101010101010101
0101010101010101
10101010101010101
010101010101010101
1010101010101010101
01010101010101010101
101010101010101010101
0101010101010101010101
101010101010101010101...

result:

ok good job! (1 test case)

Test #360:

score: 23
Accepted
time: 395ms
memory: 101740kb

input:

1
5000 5208325001

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010101
101010101010101
0101010101010101
10101010101010101
010101010101010101
1010101010101010101
01010101010101010101
101010101010101010101
0101010101010101010101
101010101010101010101...

result:

ok good job! (1 test case)

Test #361:

score: 23
Accepted
time: 407ms
memory: 101636kb

input:

1
5000 5208329137

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010101
101010101010101
0101010101010101
10101010101010101
010101010101010101
1010101010101010101
01010101010101010101
101010101010101010101
0101010101010101010101
101010101010101010101...

result:

ok good job! (1 test case)

Test #362:

score: 23
Accepted
time: 393ms
memory: 101668kb

input:

1
5000 5208324886

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010101
101010101010101
0101010101010101
10101010101010101
010101010101010101
1010101010101010101
01010101010101010101
101010101010101010101
0101010101010101010101
101010101010101010101...

result:

ok good job! (1 test case)

Test #363:

score: 23
Accepted
time: 398ms
memory: 101796kb

input:

1
5000 5208321567

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010101
101010101010101
0101010101010101
10101010101010101
010101010101010101
1010101010101010101
01010101010101010101
101010101010101010101
0101010101010101010101
101010101010101010101...

result:

ok good job! (1 test case)

Test #364:

score: 23
Accepted
time: 421ms
memory: 101680kb

input:

1
5000 5208332281

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010101
101010101010101
0101010101010101
10101010101010101
010101010101010101
1010101010101010101
01010101010101010101
101010101010101010101
0101010101010101010101
101010101010101010101...

result:

ok good job! (1 test case)

Test #365:

score: 23
Accepted
time: 454ms
memory: 102632kb

input:

1
4999 5135965230

output:

Yes
1
11
110
0001
11001
011101
1010100
01001100
001010111
0101010101
10101001101
010101010100
0111111011111
01010101010010
101110111111100
0101010101110001
10101010101111111
010101010001010100
1010101010111011010
01010101010101010101
111110101110000010111
0101010101010111010100
101010101010101010101...

result:

ok good job! (1 test case)

Test #366:

score: 23
Accepted
time: 447ms
memory: 102604kb

input:

1
4999 5204297521

output:

Yes
1
00
111
0110
11100
010100
1011001
11110101
101110101
0111010100
11100011111
010101010100
1010101010001
11010101010100
101010111011110
0101010101010111
10111010101010111
010101010101010100
1010101010101010100
11010101010111100010
101010101010101010110
0101010101010101010101
101010101010101010101...

result:

ok good job! (1 test case)

Test #367:

score: 23
Accepted
time: 506ms
memory: 103600kb

input:

1
4999 5183922040

output:

Yes
0
00
101
0100
10101
010100
1010001
01010100
001011110
0101011111
10111010111
010101010100
1010101010100
01111111101010
101010101010100
0101010101010101
10101010111010100
010101010101010101
1010101010101010010
01010101110101000101
101010101010101010001
0101010100010101011101
001010101010101101101...

result:

ok good job! (1 test case)

Test #368:

score: 23
Accepted
time: 501ms
memory: 103488kb

input:

1
5000 5155967728

output:

Yes
1
11
111
1111
10101
010111
1010101
01110111
101010101
0111011111
10101010111
010111110111
1111101010101
01011111010101
101110101011111
0101110111010111
10111011110011111
110101111101111101
1111111110111110101
11011111010101010101
101010101110101010101
1111010110010101011101
111010101110111111111...

result:

ok good job! (1 test case)

Test #369:

score: 23
Accepted
time: 502ms
memory: 103464kb

input:

1
5000 5187380758

output:

Yes
1
01
101
1101
11111
111111
1111111
01011111
111010111
0111010101
10101110101
111101011111
1110101111110
11111101011101
111111111110111
1101110101111111
10111010101011101
011111010101110100
1010111111111111101
01010101110111110101
101010101010101010101
0101110101011111011101
101010111010111110111...

result:

ok good job! (1 test case)

Test #370:

score: 23
Accepted
time: 450ms
memory: 102912kb

input:

1
5000 5194844191

output:

Yes
1
01
111
1111
10111
110110
1111111
11110111
111111111
1111010101
10101110101
011101111111
1110101110101
01110111111101
101010111111101
1111111101011101
11001010101110111
111101111111010111
1011101010101010101
11110111010101111101
101011111011101010101
0111010111111111111101
101010101010101011111...

result:

ok good job! (1 test case)

Test #371:

score: 23
Accepted
time: 500ms
memory: 103408kb

input:

1
5000 5181277861

output:

Yes
1
11
101
0101
10101
110111
1010111
11011101
111010111
1111010101
10111010111
110101010101
1011101011111
11011101010101
111110111010111
0111111101010111
10101011101010101
010101111101111101
1010101010111010101
11011101110101111101
101010101011101010111
0101111101011101010111
101010111010101010101...

result:

ok good job! (1 test case)

Test #372:

score: 23
Accepted
time: 522ms
memory: 103452kb

input:

1
5000 5162060211

output:

Yes
1
11
111
1101
11101
111101
1110101
11011101
101010101
0101111101
10101010101
010111010111
1010101010101
01010101110111
101010101010101
1101010111010101
11101110011011111
011101011111111111
1010101010101110111
01010111011111110111
111010101010101011101
1111010101010111010101
101111101010101110101...

result:

ok good job! (1 test case)

Test #373:

score: 23
Accepted
time: 478ms
memory: 103384kb

input:

1
4999 4069506833

output:

Yes
1
11
110
0111
10101
111111
1010111
01011101
111011111
1101010101
10101110101
011101010101
1010101010101
11011101011111
101110111110111
1111110111010111
11101011111110101
111111010111010101
1010101010101010101
11010101011111010101
101010101010101010111
1101010101110111010111
101010111010111010111...

result:

ok good job! (1 test case)

Test #374:

score: 23
Accepted
time: 449ms
memory: 102640kb

input:

1
4999 4300556425

output:

Yes
1
10
111
0111
11101
010100
1010101
01010101
101011101
0101110101
10111010101
010101011110
1010101010101
01010101010101
101010101010101
0101010101010101
10101010101010111
010101010101010101
1010111010101011111
11010101010101010110
101011101110111011101
0101010101010101110101
101010101010101010101...

result:

ok good job! (1 test case)

Test #375:

score: 23
Accepted
time: 481ms
memory: 103092kb

input:

1
4999 4348897699

output:

Yes
0
01
100
0101
10110
110100
1010101
01010111
111010101
0101010101
10101010101
010101010101
1010101010111
01010101011101
101011101010100
1101010111100111
10101010101010101
110101110111010101
1010101010101010101
01010111011101110100
101010101011101011101
0111010101010101010101
101010101010101010101...

result:

ok good job! (1 test case)

Test #376:

score: 23
Accepted
time: 487ms
memory: 102868kb

input:

1
5000 5030666205

output:

Yes
1
01
111
1100
11111
011111
1010001
01000000
101000110
1010110100
10111010101
010101000100
1010101011100
01010101011010
101010101110111
0101010111100100
10101010101010101
010101010101010111
1000101001101010110
01010101011101010100
101000001000101010011
1011110110110101010100
101010101010101111110...

result:

ok good job! (1 test case)

Test #377:

score: 23
Accepted
time: 471ms
memory: 103216kb

input:

1
5000 4693049796

output:

Yes
1
11
101
1111
11111
111111
1111101
01010111
101011101
1111110111
10111011101
110101010111
1010101110101
01111101010111
101110101111111
1111110111010111
10001010101010101
011111010100010101
1110101010100110111
01011111010101110111
101010101010101010101
0101011111111101011101
101010101010101110101...

result:

ok good job! (1 test case)

Test #378:

score: 23
Accepted
time: 483ms
memory: 103100kb

input:

1
5000 4571580553

output:

Yes
1
11
111
0111
11101
010111
1010111
01110111
101111111
1101110101
10101010101
110101111101
1010101010111
01011111011111
111011101010101
0111111111010111
11111110101010101
111111111101111101
1111101011101010101
01010101111101010111
101010101010111010101
1111111111111111010111
101010101010101010101...

result:

ok good job! (1 test case)

Test #379:

score: 23
Accepted
time: 525ms
memory: 103604kb

input:

1
5000 4914362477

output:

Yes
1
10
111
0100
10101
010000
1010101
01010000
101011101
0101010111
10101010101
111001110101
1010101010110
01010101011110
101011101000101
0101010101010101
11101110101010100
010101010101110000
1010101010101010101
01010101110110011110
101010101110101010101
0101000101011111100110
101110101010101110101...

result:

ok good job! (1 test case)

Test #380:

score: 23
Accepted
time: 500ms
memory: 103248kb

input:

1
5000 4287851573

output:

Yes
1
00
101
0101
10101
110101
1010101
01010110
101010101
0101010101
10101010101
010101010101
1010111010111
01010111011101
101011101011101
0101010101010110
11101110111011101
010101010101110101
1011101010101010101
01010101011111111111
101110101010101010011
0101010101010111010101
101010101010111110111...

result:

ok good job! (1 test case)

Test #381:

score: 23
Accepted
time: 530ms
memory: 103784kb

input:

1
4999 5202085001

output:

Yes
1
00
111
0110
11100
010100
1011001
11010101
101110101
0111010100
11100011111
010101010100
1010101010001
11010101010100
101010111011110
0101011101010111
10111010101010111
110111110101010110
1010101010101010100
11010101010111100010
101010101010101010110
0101010101010101010101
101010101010101010101...

result:

ok good job! (1 test case)

Test #382:

score: 23
Accepted
time: 551ms
memory: 103608kb

input:

1
5000 5205208751

output:

Yes
1
01
111
0101
10111
010111
1010101
01110101
101010111
1111011111
10101011111
010101011111
1011101011101
11110111011111
110111111111111
0101111111110101
00101010111010101
010101011111111101
1011101010101010111
01110111010111011111
101110111010101010111
0101011111110111111111
101110111010101010101...

result:

ok good job! (1 test case)

Test #383:

score: 23
Accepted
time: 84ms
memory: 101616kb

input:

1
4999 5205208752

output:

No

result:

ok good job! (1 test case)

Test #384:

score: 23
Accepted
time: 88ms
memory: 101652kb

input:

1
4999 5205208757

output:

No

result:

ok good job! (1 test case)

Test #385:

score: 23
Accepted
time: 84ms
memory: 101552kb

input:

1
4999 5205208758

output:

No

result:

ok good job! (1 test case)

Test #386:

score: 23
Accepted
time: 85ms
memory: 101572kb

input:

1
5000 5208332508

output:

No

result:

ok good job! (1 test case)

Test #387:

score: 23
Accepted
time: 87ms
memory: 101524kb

input:

1
5000 5208332507

output:

No

result:

ok good job! (1 test case)

Test #388:

score: 23
Accepted
time: 81ms
memory: 101572kb

input:

1
5000 5208332502

output:

No

result:

ok good job! (1 test case)

Test #389:

score: 23
Accepted
time: 84ms
memory: 101872kb

input:

1
5000 5208332509

output:

No

result:

ok good job! (1 test case)

Test #390:

score: 23
Accepted
time: 89ms
memory: 101576kb

input:

1
5000 5208332506

output:

No

result:

ok good job! (1 test case)

Test #391:

score: 23
Accepted
time: 338ms
memory: 101780kb

input:

1
4999 4509

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010111
10101010101
010101010101
1010101010101
01010101010111
101010101010101
0101010101010101
10101010101010101
010101010101011111
1010101010101010101
01010101010101010101
101010101010101010111
0101010101010101010101
101010101010101010100...

result:

ok good job! (1 test case)

Test #392:

score: 23
Accepted
time: 337ms
memory: 101844kb

input:

1
4999 1108

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010101
101010101010101
0101010101010101
10101010101010101
010101010101010101
1010101010101010101
01010101010101010111
101010101010101010001
0101010101010101010101
101010101010101010101...

result:

ok good job! (1 test case)

Test #393:

score: 23
Accepted
time: 328ms
memory: 101664kb

input:

1
4999 2694

output:

Yes
1
01
111
0110
11110
010111
1010000
11010001
110000000
1100110111
10101010100
010101010101
1010101010101
11111101011100
101010101010101
0101010101010100
10101010101010100
010101010101011101
1010101010101000001
01010101010101010100
101010100011110101001
1101000100010101010101
100000101011101010101...

result:

ok good job! (1 test case)

Test #394:

score: 23
Accepted
time: 316ms
memory: 101724kb

input:

1
5000 3247

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010101
101010101010101
0101010101010101
10101010101010101
010101010101010101
1010101010101010101
01010101010101010101
101010101010101010101
0101010101010101010100
101010101010101010100...

result:

ok good job! (1 test case)

Test #395:

score: 23
Accepted
time: 335ms
memory: 101792kb

input:

1
5000 251

output:

Yes
1
00
101
1100
10111
010000
1010101
11101010
101010101
0101010100
10111110111
010111010010
1010101010101
01010101010100
101010101010111
0101010101110010
10101010101111101
010101010101000110
1111111111111111111
11111111111111111111
111111111111111111111
1111111111111111111111
111111111111111111111...

result:

ok good job! (1 test case)

Test #396:

score: 23
Accepted
time: 343ms
memory: 102044kb

input:

1
5000 7242

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010101
101010101010101
0101010101010101
10101010101010101
010101010101010101
1010101010101010101
01010101010101010101
101010101010101010101
0101010101010101010101
101010101010101010101...

result:

ok good job! (1 test case)

Test #397:

score: 23
Accepted
time: 334ms
memory: 101792kb

input:

1
5000 13031

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010101
101010101010101
0101010101010101
10101010101010101
010101010101010101
1010101010101010101
01010101010101010101
101010101010101010101
0101010101010101010101
101010101010101010101...

result:

ok good job! (1 test case)

Test #398:

score: 23
Accepted
time: 345ms
memory: 101796kb

input:

1
5000 5260

output:

Yes
1
11
010
0000
10100
011101
1110110
11000100
101011011
0101011111
00111011101
010101010101
1000100010111
01010101010111
101110111001010
0101010101010111
10101010101100110
110101011101010101
1101111100111110000
11010101000101010111
101010101011101010100
0101010111010101010101
101010100010101011101...

result:

ok good job! (1 test case)

Test #399:

score: 23
Accepted
time: 348ms
memory: 102024kb

input:

1
4999 72889929

output:

Yes
0
01
100
0101
10110
010101
1001011
01010110
101101101
0101010100
11001110101
010101111010
0100001010101
00010101010100
011001101110101
0101011101010100
10111010101000111
010100010011010111
1010101010101011100
01000101010101010110
001010101110101010101
0101010101110101110101
101011101110001110101...

result:

ok good job! (1 test case)

Test #400:

score: 23
Accepted
time: 335ms
memory: 101840kb

input:

1
4999 21771753

output:

Yes
1
11
111
0111
11111
010101
1111111
01010111
111110101
1111110101
10111010111
110111101101
1111111010111
01110101110111
111110101011101
0111111011010011
10101011100010001
011101011111111111
1011111011110110101
01111101010101110101
111111110111111011111
0101011101011111111111
101111111111110011111...

result:

ok good job! (1 test case)

Test #401:

score: 23
Accepted
time: 335ms
memory: 101792kb

input:

1
4999 24307832

output:

Yes
1
11
101
0101
11111
010101
1110101
01011101
101111101
1101011101
10111111101
110111011111
0011101110101
01011101010101
101011101010101
0101010111110101
11111011100010111
010101011111111101
1010111111101111101
01011111010101010101
111010001111011111101
0111010111110111111111
111110100111111110111...

result:

ok good job! (1 test case)

Test #402:

score: 23
Accepted
time: 336ms
memory: 101720kb

input:

1
5000 11643247

output:

Yes
1
01
111
0111
11101
111101
1011111
11110111
101010100
0100011111
10101010111
111001111111
1010101010101
01100100011111
111110111111101
1111111111010111
10101100101010001
010101000111111111
1010101011101111101
01110101011101010101
101110101010101010101
0001010100010101010101
101010101000100000100...

result:

ok good job! (1 test case)

Test #403:

score: 23
Accepted
time: 332ms
memory: 101840kb

input:

1
5000 9670251

output:

Yes
1
11
101
0101
01110
010101
0111100
01010000
101010101
0101011100
10001110000
010111010101
1110101011011
01010101011101
001101011111110
0101010101111111
10101010111011100
010101010101110111
0001100011111110000
01011010110001000101
111010101100111011101
0101010101010101010101
101001101101111111100...

result:

ok good job! (1 test case)

Test #404:

score: 23
Accepted
time: 348ms
memory: 102156kb

input:

1
5000 34307242

output:

Yes
1
01
111
0111
10101
011101
1011111
11110101
101011101
0101111111
10001010111
110101011111
1110111111111
11011111110101
101010111010101
0111110111010111
01111111101011101
010111010101010111
1110111011101111101
01011101111101010111
111010111111111011101
1101010101010101010111
101010101010101010101...

result:

ok good job! (1 test case)

Test #405:

score: 23
Accepted
time: 336ms
memory: 101860kb

input:

1
5000 43678031

output:

Yes
1
11
111
1101
11101
010101
1010101
01010111
101010101
0111011111
11111011111
110101110100
1111101110110
01010101000001
111111101011111
0101010101011101
10001111101000001
110111010101010101
1110111010101001101
01010101111111010111
101011101010101010101
0101010101111111111101
011110111110101011111...

result:

ok good job! (1 test case)

Test #406:

score: 23
Accepted
time: 342ms
memory: 102120kb

input:

1
5000 33625260

output:

Yes
1
01
111
1101
10101
110101
1111111
01110101
101111111
1111110101
10111111111
010101010111
1010101010101
11010101010111
101010101110111
0101010101010111
10101010101010111
010101010101010111
1010101010101011111
01010101010101110111
101010101011101111011
1101011101110101011101
101011101010101011101...

result:

ok good job! (1 test case)

Test #407:

score: 23
Accepted
time: 345ms
memory: 101920kb

input:

1
4999 153346012

output:

Yes
1
11
101
1101
11101
111111
1010101
01010101
101010101
1111110111
10101011101
110111010111
1010101110111
01010101010101
101010101111101
0101010101010111
10101011101111101
110001101011010011
1010101110101011111
01111101110101001111
101010111011101111100
0101011101110101111101
111011101011101010111...

result:

ok good job! (1 test case)

Test #408:

score: 23
Accepted
time: 389ms
memory: 102420kb

input:

1
4999 1206175180

output:

Yes
0
11
101
0111
11110
110111
1010101
01011101
010100100
1111011111
10101010100
110111011101
0101110111100
11110101111111
111010110010110
0101110101010101
10111101101010100
111111011101010111
1011101010101010001
01010111010111110101
101011101010101110101
0111111101110111110011
101010101010111010101...

result:

ok good job! (1 test case)

Test #409:

score: 23
Accepted
time: 366ms
memory: 102300kb

input:

1
4999 709629300

output:

Yes
0
01
011
1010
10010
010111
1111001
00000011
101110111
1101010101
10100011100
011101100100
0010001111111
11010101011101
111010100000100
0101010011001101
11111000100010011
010110100000100111
1110111110101000110
01111010110111011100
101100001010000100001
0101010101010101000111
101010101010101010101...

result:

ok good job! (1 test case)

Test #410:

score: 23
Accepted
time: 404ms
memory: 102496kb

input:

1
5000 1005829742

output:

Yes
1
10
101
0101
10111
001101
1011100
01010101
111011111
0101010100
10111011101
010101010010
1011011110100
01010101110011
100101001010001
0101010101010100
11111011101001101
010101010101010111
1110110111111101110
11010101010101000101
101110111010101111011
0111010000111001110100
101011111010011011000...

result:

ok good job! (1 test case)

Test #411:

score: 23
Accepted
time: 384ms
memory: 102204kb

input:

1
5000 1224201505

output:

Yes
1
01
101
1111
10101
110101
1010101
01111111
101110101
0101010101
10111010101
010101110111
1010101111111
11010111011111
111011111110111
0101110101010101
10101010101010101
010111110111010111
1011111111101010101
01011111011111110101
101010111011111010101
0101010101010101010101
101010101010101110101...

result:

ok good job! (1 test case)

Test #412:

score: 23
Accepted
time: 351ms
memory: 102236kb

input:

1
5000 925455260

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010101
101010101010101
0101010101010101
10101010101010101
010101010101010101
1010101010101010101
01010101010101010101
101010101010101010101
0101010101010101010101
101010101010101010101...

result:

ok good job! (1 test case)

Test #413:

score: 23
Accepted
time: 403ms
memory: 102388kb

input:

1
5000 709941552

output:

Yes
1
01
111
1101
10101
110111
1111111
01010111
111111111
1101010111
10101011111
010101011111
1010111010101
01010101010101
100010111011111
0101111101110111
11101111101011101
011101010101010101
1111101111101010101
01010101010101010101
101110111110101010111
0101010111010101110101
101010101010101010101...

result:

ok good job! (1 test case)

Test #414:

score: 23
Accepted
time: 355ms
memory: 101904kb

input:

1
5000 313686067

output:

Yes
1
01
101
0101
11111
111101
1011101
01011101
111011101
0111010111
11111010111
011101010101
1010101010101
01111111011111
111110101110101
0101011111011101
10111110111110111
010101010101010111
1010101110111011101
01111101010101010101
101010101011101011101
1101010101010111010111
101010101010101111111...

result:

ok good job! (1 test case)

Test #415:

score: 23
Accepted
time: 163ms
memory: 56880kb

input:

9
2619 672433584
922 3971218
635 273073
59 6252
366 236521
275 738448
68 4274
52 2575
3 0

output:

Yes
1
11
101
0111
10111
110111
1111101
01010101
111010101
1101010101
10101010101
011111111111
1010111110101
01111101010101
101010101010111
0101111111010111
11101010101010101
011111110101010111
1011101010111010101
01111101010101111111
101000111110101110111
0111111101110101110111
111011101110111011111...

result:

ok good job! (9 test cases)

Test #416:

score: 23
Accepted
time: 122ms
memory: 44352kb

input:

10
2065 326616173
635 5454133
258 223488
1465 94003613
501 3203523
15 124
12 19
32 380
12 11
5 0

output:

Yes
1
00
111
1111
11111
111110
1010111
10010110
101010111
0101111110
11111010101
011101010101
1010101010101
01010101010101
101010101110101
1101111111011100
11111110101011101
010101110101010111
1010101010101010110
01010101010101000100
101000101010101010000
0101010111011101010100
101110101010101010101...

result:

ok good job! (10 test cases)

Test #417:

score: 23
Accepted
time: 168ms
memory: 66708kb

input:

10
133 69738
690 5626670
3110 547518324
177 104754
793 12918527
24 427
54 785
5 2
9 11
4 2

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010101
101010101010101
0101010101010101
10101010101010101
010101010101010101
1010101010101010101
01010101010101010101
101010101010101010101
0101010101010101010101
101010101010101010101...

result:

ok good job! (10 test cases)

Test #418:

score: 23
Accepted
time: 119ms
memory: 43764kb

input:

7
2022 39262075
1722 36740513
1085 20749788
88 20124
59 7319
18 7
4 1

output:

Yes
0
01
000
0100
10001
010001
1010100
01011111
101011110
0100001101
01100011111
011111110101
1000100010000
01000111010100
011001001110001
0100000100110101
10101110101100111
010101011111110011
1010101000101101101
01111101010100011111
101010101010101010100
0101011101111111110011
111001101110000110011...

result:

ok good job! (7 test cases)

Test #419:

score: 23
Accepted
time: 192ms
memory: 70800kb

input:

9
3338 546623099
251 516661
639 2660568
481 1785023
91 21946
17 169
108 35582
65 11044
9 21

output:

Yes
1
00
101
0111
10101
011111
1100111
11010101
101010111
1101010101
10101110100
011101110101
1011111011101
11011011111111
101010101010111
0101010101110111
10101010101011111
110011011111011101
1010101010101111101
01010101010101010101
101011101010101110100
0110011111010111111110
101010101010101010101...

result:

ok good job! (9 test cases)

Test #420:

score: 23
Accepted
time: 437ms
memory: 102788kb

input:

1
4999 4177820680

output:

Yes
1
11
101
0101
10111
110101
1010101
01110111
101111101
0101010101
10101010101
010111010101
1010111110111
11011101010111
101010101010101
0001010101011101
10101010101010111
110101110101111101
1010101110101011101
11110101010111011101
101010101010101011101
1101010101110101111101
101010101010101010101...

result:

ok good job! (1 test case)

Test #421:

score: 23
Accepted
time: 516ms
memory: 103600kb

input:

1
4999 4513673892

output:

Yes
1
11
101
1101
10101
010101
1110111
11111101
101000001
1111111101
10101011111
110111010101
1011111011101
01110111010111
111111111010111
1111011101111111
10101011111010101
011101010111110101
1010101010111011111
11111101110111110111
101010101111101011101
0101011101111101010101
101010111010101010101...

result:

ok good job! (1 test case)

Test #422:

score: 23
Accepted
time: 93ms
memory: 101552kb

input:

1
4999 13400105025

output:

No

result:

ok good job! (1 test case)

Test #423:

score: 23
Accepted
time: 412ms
memory: 102604kb

input:

1
5000 1525081015

output:

Yes
1
11
101
0111
11101
010101
1011111
01010101
101010101
0101010100
10101010100
010101011111
1010101011101
01010101010100
111010101011101
0101010101011111
10101011101010111
010101010101010111
1010101010101011111
01010101110101010101
101010101111111111101
0101010101010101010100
111010101010101110101...

result:

ok good job! (1 test case)

Test #424:

score: 23
Accepted
time: 376ms
memory: 101928kb

input:

1
5000 2039452757

output:

Yes
1
01
101
0101
10101
010101
1010101
01010101
101010101
0101010101
10101010101
010101010101
1010101010101
01010101010101
101010101010101
0101010101010101
10101010101010101
010101010101010101
1010101010101010101
01010101010101010101
101010101010101010101
0101010101010101010101
101010101010101010101...

result:

ok good job! (1 test case)

Test #425:

score: 23
Accepted
time: 386ms
memory: 102352kb

input:

1
5000 1256450563

output:

Yes
1
01
111
1111
10111
011100
1110001
11100101
110011101
1010001001
11101111110
011101010010
1010001011101
01010101010001
100000100101011
1101111111100111
10101010111110101
010101010111010101
1110001011111010101
01010111100001110100
101010101011111110111
0101110101010111101101
111010101010101010100...

result:

ok good job! (1 test case)

Test #426:

score: 23
Accepted
time: 437ms
memory: 102796kb

input:

1
5000 1817271204

output:

Yes
1
01
101
0100
11111
010101
1110101
01010111
101010100
0101010100
11111011101
110101010101
1010101011111
01010101010101
101110111010101
0101010101010101
10111010101010111
010101111101010101
1111101110101110110
01010101010101011111
101010101010101110101
0101010101010101011100
111010101110101010111...

result:

ok good job! (1 test case)

Test #427:

score: 23
Accepted
time: 363ms
memory: 102332kb

input:

1
5000 487140772

output:

Yes
1
11
111
0101
10101
010101
1110111
01011111
101111111
0111111111
11111010111
010101010101
1011101110101
01111111011101
101011101010101
0111010101010111
11101111101111101
010101011101010101
1011111111111011111
01111101010101110101
111011101111101110111
0101010101010101011111
111111111110111110111...

result:

ok good job! (1 test case)

Extra Test:

score: 0
Extra Test Passed